Changes

Jump to navigation Jump to search
361 bytes added ,  07:10, 31 January 2018
Line 20: Line 20:  
* -S – handle sparse files efficiently
 
* -S – handle sparse files efficiently
 
* --delete – if the file is deleted from the source directory, delete it from the target directory
 
* --delete – if the file is deleted from the source directory, delete it from the target directory
 +
 +
== From your local machine ==
 +
rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
 +
 +
== From your local machine with a non standard ssh port ==
 +
rsync -avz -e "ssh -p $portNumber" user@remote.host:/path/to/copy /local/path
 +
 +
== Or from the remote host ==
 +
rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
    
== Remote backups ==
 
== Remote backups ==

Navigation menu