Vendredi 23 novembre 2018

Sauvegarde restauration via rsync entre serveur (yanspm - backupuser)

# Sauvegarde
/usr/bin/rsync -aev --delete --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude-from '/home/backupuser/exclude.txt' --rsh="/usr/bin/ssh -p 55027 -i /home/backupuser/.ssh/id_rsa" backupuser@cinay.pw:/ /media/yanplus/sauvegarde/aujourdhui/stretch_cinay.pw
# Restauration
/usr/bin/rsync -aev --delete --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude-from '/home/backupuser/exclude.txt' --rsh="/usr/bin/ssh -p 55027 -i /home/backupuser/.ssh/id_rsa" /media/yanplus/sauvegarde/aujourdhui/stretch_cinay.pw/* backupuser@cinay.pw:/

# Restauration xoyize.xyz
/usr/bin/rsync -aev --delete --rsync-path=/home/backupuser/rsync-wrapper.sh --exclude-from '/home/backupuser/exclude.txt' --rsh="/usr/bin/ssh -p 55026 -i /home/backupuser/.ssh/id_rsa" /media/yanplus/sauvegarde/aujourdhui/xoyize.xyz/* backupuser@xoyize.xyz:/