RSync Examples

From Michael's Information Zone
Revision as of 17:13, 9 January 2019 by Michael.mast (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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/