Posted By

frigga on 04/28/11


Tagged

command file line ssh sync transfer folders


Versions (?)

transfer files via ssh


 / Published in: Bash
 

URL: http://hintsforums.macworld.com/showthread.php?t=52649

Command to transfer files between servers using the command line.

  1. Another way, if you have SSH:
  2.  
  3. rsync -aE -e ssh directory user@hostB:target_dir
  4.  
  5. or from hostB
  6.  
  7. rsync -aE -e ssh user@hostA:directory target_dir
  8.  
  9. You can also use the z (--compress) switch to rsync if network throughput is an issue.

Report this snippet  

You need to login to post a comment.