Rsync

From Useful Things
Revision as of 16:48, 14 September 2014 by Milosivanovic (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Common arguments

-a same as --archive
-v same as --verbose
-x same as --one-file-system
-z compress files over the network

Push

rsync -avx /path/to/source user@host:/path/to/destination

Pull

rsync -avx user@host:/path/to/source /path/to/destination

Pull via SSH

rsync -avx --progress -e 'ssh -p 1080' --exclude-from=EXCLUDE_FILESOURCE_IP:/ /

-p to specify alternate SSH port