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/")
 
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/