Difference between revisions of "RSync Examples"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with " rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/") |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/ | rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/ | ||
+ | *<ref>http://mike-hostetler.com/blog/2007/12/08/rsync-non-standard-ssh-port/</ref>For replicating from a remote server, using a non-standard SSH port. | ||
+ | <pre> | ||
+ | rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/ | ||
+ | </pre> |
Revision as of 06:22, 6 August 2018
rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/
- [1]For replicating from a remote server, using a non-standard SSH port.
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/