From 7ad7750028c7c445d184e09894fcbf9d489ffffb Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 19 Mar 2023 02:18:07 +0100 Subject: [PATCH] Improved Plan B scripts. --- Plan Borg/bin/push-mirror | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Plan Borg/bin/push-mirror b/Plan Borg/bin/push-mirror index 5b20145..ad04ac2 100644 --- a/Plan Borg/bin/push-mirror +++ b/Plan Borg/bin/push-mirror @@ -1,6 +1,5 @@ #!/bin/bash PORT=222 -BACKUP_SERVER=sauvkipeu.libre-en-communs.org -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/ -#BACKUP_SERVER=gardefou.libre-en-communs.org -#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/ +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/ +done