Last Updated: February 25, 2016
·
528
· 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'