User Tools

Site Tools


informatique:logiciels:rsync

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatique:logiciels:rsync [2016/01/07 13:40] – exemple de synchro via SSH pteuinformatique:logiciels:rsync [2016/10/24 14:08] – [Paramètres courants] pteu
Line 40: Line 40:
  --stats : affiche des stats sur la synchronisation  --stats : affiche des stats sur la synchronisation
  --no-<opt> : annule l'option <opt> (ex : --no-o annule l'option -o)  --no-<opt> : annule l'option <opt> (ex : --no-o annule l'option -o)
 + --exclude 'REGEX' : exclure de la synchronisation les fichiers matchant la pattern
 </code> </code>
  
Line 54: Line 55:
 # sauvegarder des fichiers vers une machine distante en SSH sur le port SSH non-standard 2222 : # sauvegarder des fichiers vers une machine distante en SSH sur le port SSH non-standard 2222 :
 rsync -ptrzvL -e "ssh -p 2222" --delete /home/dude /var/log/htdocs dude@srv-distant:/home/dude/sync/ rsync -ptrzvL -e "ssh -p 2222" --delete /home/dude /var/log/htdocs dude@srv-distant:/home/dude/sync/
 +
 +# sauvegarder plusieurs répertoires d'une machine distante vers la machine locale, en SSH :
 +rsync -ptrzvL -e ssh \
 + bck_user@machine_distante:'/etc/nagios/conf.d \
 + /usr/lib64/nagios/plugins \
 + /usr/local/nagios/libexec \
 + /opt/pnp4nagios' \
 + /backup_local
 </code> </code>
- 
- 
 =====Liens===== =====Liens=====
  
   * [[http://man.developpez.com/man1/rsync.1.php|man traduit en français]]   * [[http://man.developpez.com/man1/rsync.1.php|man traduit en français]]
  
informatique/logiciels/rsync.txt · Last modified: 2021/07/16 14:40 by pteu