Improved Plan B scripts.
This commit is contained in:
parent
7ad7750028
commit
8abfe4506f
|
@ -3,3 +3,5 @@ PORT=222
|
||||||
for BACKUP_SERVER in sauvkipeu.libre-en-communs.org gardefou.libre-en-communs.org; do
|
for BACKUP_SERVER in sauvkipeu.libre-en-communs.org gardefou.libre-en-communs.org; do
|
||||||
rsync -aq -e "ssh -p ${PORT} -i /root/.ssh/backup_ssh_key" --numeric-ids --update --delete --delete-after --exclude '/dev/' --exclude '/proc/' --exclude '/sys/' / borg@${BACKUP_SERVER}:/mirror/
|
rsync -aq -e "ssh -p ${PORT} -i /root/.ssh/backup_ssh_key" --numeric-ids --update --delete --delete-after --exclude '/dev/' --exclude '/proc/' --exclude '/sys/' / borg@${BACKUP_SERVER}:/mirror/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Don't be afraid by the rsync destination. The authorized_keys in backup server contains a rrsync restriction which fix the good directory.
|
||||||
|
|
Loading…
Reference in New Issue