en:server:services:rsync

Differences

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

Link to this comparison view

Next revision
Previous revision
en:server:services:rsync [2022/02/25 20:04] – created danen:server:services:rsync [2023/08/10 03:47] (current) – [rsync] added rsync website dan
Line 1: Line 1:
 ====== rsync ====== ====== rsync ======
  
-rsync is an [[https://www.opensource.org/|open source]] utility that provides fast incremental file transfer. rsync is freely available under the [[https://rsync.samba.org/GPL.html|GNU General Public License]]. +[[https://rsync.samba.org/|rsync]] is an [[https://www.opensource.org/|open source]] utility that provides fast incremental file transfer. rsync is freely available under the [[https://rsync.samba.org/GPL.html|GNU General Public License]]. 
  
  
Line 49: Line 49:
  
 ==== Config ==== ==== Config ====
 +
 +Change ''$user''.
  
 <code> <code>
Line 59: Line 61:
 timeout = 300 timeout = 300
 read only = false read only = false
 +# http user if you want to have access via web
 +#uid = 33
 +#gid = 33
 +# Run a script before and after a connection
 +#pre-xfer exec = /root/before_script.sh
 +#post-xfer exec = /root/after_script.sh
 # Security # Security
 auth users = $user       auth users = $user      
Line 66: Line 74:
 </code> </code>
  
-==== Service ====+==== Start ====
  
 <code> <code>
 systemctl enable --now rsyncd.service systemctl enable --now rsyncd.service
 </code> </code>
 +
 +
 +==== Command ====
 +
 +Change ''$DAEMONUSER'' and ''$DAEMONHOST''.
 +
 +<code>
 +rsync --rltogiPhv --stats /local/path rsync://$DAEMONUSER@$DAEMONHOST/archive/path/
 +</code>
 +
 +
 +===== Backup =====
 +
 +Go to our [[en:backup:server#rsync|backup]] tutorial.
  • en/server/services/rsync.1645819494.txt.gz
  • Last modified: 2022/10/24 08:24
  • (external edit)