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 revisionBoth sides next revision
informatique:logiciels:rsync [2016/01/07 13:40] – exemple de synchro via SSH pteuinformatique:logiciels:rsync [2016/06/02 14:24] – [Exemples d'utilisation] pteu
Line 54: Line 54:
 # 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