Feb 17, 2009

Fast, encrypted file copy

From time to time I need to copy files between UNIX boxes without having NFS, SMB, whatever in place. This can be easily done with SSH, TAR and, if available BUFFER. The needed command is:
tar cvf - source-dir/ | buffer | ssh -e none -c blowfish user@remote.host.tld "cd /dest-dir && buffer | tar xvf -"
If BUFFER is not installed, simply remove it and use:
tar cvf - source-dir/ | ssh -e none -c blowfish user@remote.host.tld "cd /dest-dir | tar xvf -"
instead.

No comments: