linux:rsync

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
linux:rsync [2018/08/28 10:55] michaellinux:rsync [2020/03/26 10:21] michael
Line 36: Line 36:
  
  
 +<WRAP center box 100%>
 ==== Copy/Sync Files and Directory Locally ==== ==== Copy/Sync Files and Directory Locally ====
  
  
-=== Copy/Sync a File on a Local Computer ===+</WRAP>
  
  
-=== Copy/Sync a Directory on Local Computer === 
  
 +<WRAP center box 100%>
 +==== Copy/Sync Files and Directory to or From a Server ====
  
----- 
  
 +</WRAP>
  
-==== Copy/Sync Files and Directory to or From a Server ==== 
  
 +<WRAP center box 100%>
 +==== Using custom port for rsync over ssh ====
 +
 +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>
 +
 +For example, if you want to force using IPv6 addresses, just add standard ''-6'' ssh parameter to above command:
 +
 +<code>$ rsync -a -e "ssh -p 14022 -6" /local/dir user@host:/backup/dir</code>
 +
 +You can also combine any other ssh parameters in this way.
  
-=== Copy a Directory from Local Server to a Remote Server ===+See: [[man ssh|http://manpages.org/ssh]]
  
 +</WRAP>
  
-=== Copy/Sync a Remote Directory to a Local Machine === 
  
  
  • linux/rsync.txt
  • Last modified: 2020/03/26 10:43
  • by michael