Tips: Difference between revisions

From MDWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== Using rsync ==
== Using rsync ==
An efficient way to transfer files or directory between computers:
An efficient way to transfer files or directory between computers:
  rsync -avzP --delete -e 'ssh -p20' username@old_server:/old_place/ \ username@new_server:/new_place/
  rsync -avzP --delete -e 'ssh -p20' username@old_server:/old_place/ \  
      username@new_server:/new_place/


Important, the flag --delete will delete any file at the target which does not appear at the source. Also you should put at the port flag the port on our system (if you don't know, ask the one of the 'Guru's).
Important, the flag --delete will delete any file at the target which does not appear at the source. Also you should put at the port flag the port on our system (if you don't know, ask the one of the 'Guru's).

Latest revision as of 02:35, 8 October 2008

Using rsync

An efficient way to transfer files or directory between computers:

rsync -avzP --delete -e 'ssh -p20' username@old_server:/old_place/ \ 
     username@new_server:/new_place/

Important, the flag --delete will delete any file at the target which does not appear at the source. Also you should put at the port flag the port on our system (if you don't know, ask the one of the 'Guru's).