Improved Plan B scripts.

This commit is contained in:
Christian P. MOMON 2023-03-19 02:18:07 +01:00
parent bb2a03c9d7
commit 7ad7750028
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
PORT=222 PORT=222
BACKUP_SERVER=sauvkipeu.libre-en-communs.org 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/
#BACKUP_SERVER=gardefou.libre-en-communs.org done
#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/