User Tools

Site Tools


rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rsync [2021/09/23 17:57] – [Copying files using rsync from remote server to local machine] chifekrsync [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 31: Line 31:
 rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
 </code> </code>
 +
 +
 +From your local machine with a non standard ssh port:
 +
 +
 +<code>
 +rsync -chavzP -e "ssh -p $portNumber" user@remote.host:/path/to/copy /local/path
 +</code>
 +
 +
 +Or from the remote host, assuming you really want to work this way and your local machine is listening on SSH:
 +
 +
 +<code>
 +rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
 +</code>
 +
  
  
  
rsync.1632419846.txt.gz · Last modified: 2023/09/14 06:06 (external edit)