Difference between revisions of "RSync Examples"

From Michael's Information Zone
Jump to navigation Jump to search
 
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.
 
*<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>
 
<pre>
 
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
 
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/
 
</pre>
 
</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/