Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:rsync [2020/03/26 10:42] – [Rsync Examples] michaellinux:rsync [2020/03/26 10:43] (current) – [Rsync Examples] michael
Line 39: Line 39:
 ==== Basic Copy/Sync Files and Directory ==== ==== Basic Copy/Sync Files and Directory ====
  
-<wrap em>Attention: the examples still have a "--dry-run" in them. If you want to copy data effectively and not only test the command, you have to remove this parameter</wrap>+<wrap em>Attention</wrap>: the examples still have a "''--dry-run''" in them. If you want to copy data effectively and not only test the command, you have to remove this parameter 
 + 
 +----
  
   * ''Copy/Sync Files and Directory locally'' <code>$ rsync -av /mnt/sourcefiles/webproject1/* /var/www/html/webproject1/ --delete --dry-run</code>   * ''Copy/Sync Files and Directory locally'' <code>$ rsync -av /mnt/sourcefiles/webproject1/* /var/www/html/webproject1/ --delete --dry-run</code>
Line 53: Line 55:
  
 To use another port with rsync, you can use the ''-e'' option to create an ssh tunnel and then using normal ssh parameter: To use another port with rsync, you can use the ''-e'' option to create an ssh tunnel and then using normal ssh parameter:
 +
  
 <code>$ rsync -a -e "ssh -p 14022" /local/dir user@host:/backup/dir</code> <code>$ rsync -a -e "ssh -p 14022" /local/dir user@host:/backup/dir</code>
  • linux/rsync.1585215720.txt.gz
  • Last modified: 2020/03/26 10:42
  • by michael