transfer files via ssh


/ Published in: Bash
Save to your folder(s)

Command to transfer files between servers using the command line.


Copy this code and paste it in your HTML
  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.

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.