$ssh->system({stdout_file => '/tmp/file.tgz'}, "cd $dir && tar czf - .");