From Wiki
Revision as of 10:54, 17 September 2015 by Deoren (talk | contribs) (Stub page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The rsync command can be used to synchronize local content or content (usually directories) between two servers. It is common to use rsync over SSH for this purpose.


  • rsync -a --progress USER@FQDN-OF-REMOTE-HOST:/remote_dir/ /local_dir/
  • rsync -a --progress USER@ /local_dir/
  • rsync -a --progress /local_dir/ USER@

The -a flag is one of the better options to use as it preserves both ownership and permissions. It's also advisable to run this under screen or tmux for remote hosts in case the SSH connection is severed.