Difference between revisions of "RSync Examples"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with " rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
  rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/
 
  rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/
 +
rsync -avzP --exclude="Home/" --exclude=".*/" --ignore-existing ./ 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>

Latest revision as of 17:13, 9 January 2019

rsync -avzP --exclude="Home/" --exclude=".*/" --delete ./ Home/sync/
rsync -avzP --exclude="Home/" --exclude=".*/" --ignore-existing ./ 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/