Last Updated: February 25, 2016
·
573
· cbacelar

Best way to transfer large files

This command compresses the file, sends via ssh and extracts in the remote specified directory:

tar -c /path/to/dir | ssh remote_server 'tar -xvf - -C /absolute/path/to/remotedir'