Improved Plan B scripts.

This commit is contained in:
Christian P. MOMON 2023-03-18 20:17:53 +01:00
parent b99e3394f0
commit c59d133d61
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/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}:/var/backups/borg/mirrors/${HOSTNAME}.libre-en-communs.org/
#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}:/var/backups/borg/mirrors/${HOSTNAME}.libre-en-communs.org/