Tag: mirror
-
Transfer files via ssh with rsync
Prefered method if ssh is available. Another way, if you have SSH: rsync -aE -e ssh directory user@hostB:target_dir or from hostB rsync -aE -e ssh user@hostA:directory target_dir You can also use the z (–compress) switch to rsync if network throughput is an issue.
-
Mirror two local directories with rsync
To copy 2 directories in a little more advanded way you can use rsync. # mirror Dir to Dir2 cd ~/Dir rsync -vaz ~/Dir2 .