User Tools

Site Tools


rsync

Differences

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

Link to this comparison view

rsync [2011/12/28 16:43]
127.0.0.1 external edit
rsync [2013/01/30 17:50]
Line 1: Line 1:
-http://​samba.anu.edu.au/​[[rsync]]/​ 
  
-[[rsync]] is an open source utility that provides fast incremental file transfer. 
- 
-  * ((http://​everythinglinux.org/​[[rsync]]/​ A tutorial on using [[rsync]])) 
-  * ((http://​deb.riseup.net/​backup/​[[rsync]]/​ configuration [[Debian]])) 
-  * http://​fixunix.com/​networking/​391968-how-get-log-file-[[rsync]]-operation-does-[[rsync]]-also-delete-remote-files.html 
- 
-=== Serveur === 
-/​etc/​rsyncd.conf 
-<​code>​log file = /​var/​log/​rsyncd.log 
-pid file = /​var/​run/​rsyncd.pid 
-lock file = /​var/​run/​rsync.lock 
- 
-[web] 
-path = /var/www/ 
-read only = yes 
-use chroot = no 
-hosts allow=192.168.144.0/​255.255.255.0 
-hosts deny=*</​code>​ 
- 
-Dans /​etc/​default/​[[rsync]],​ changer 
-<​code>​RSYNC_ENABLE=false</​code>​ 
-en 
-<​code>​RSYNC_ENABLE=true</​code>​ 
- 
-Démarrer le service: 
-<​code>/​etc/​init.d/​rsync start</​code>​ 
- 
-On peut vérifier qu'il tourne: 
-<​code>​ netstat -a | grep rsync 
-tcp        0      0 *:​rsync ​                ​*:​* ​                    ​LISTEN</​code>​ 
- 
-Depuis le client, taper: 
-<​code>​rsync --verbose ​ --progress --stats --recursive narsil:/​var/​www/​* /​home/​backup/​web/​ > rsync_web.log 
-rsync --verbose ​ --progress --stats --recursive narsil:/​var/​lib/​mysql/​* /​home/​backup/​db/​ > rsync_db.log</​code>​ 
rsync.txt · Last modified: 2013/01/30 17:50 (external edit)