From c59d133d61bde547896bb87381d653b0cc5e32bb Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 18 Mar 2023 20:17:53 +0100 Subject: [PATCH] Improved Plan B scripts. --- Plan Borg/bin/push-mirror | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Plan Borg/bin/push-mirror diff --git a/Plan Borg/bin/push-mirror b/Plan Borg/bin/push-mirror new file mode 100644 index 0000000..51a4b1e --- /dev/null +++ b/Plan Borg/bin/push-mirror @@ -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/