From f721f26ef2931d6071f80a920528b43296cf5214 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 6 Jan 2022 19:22:44 +0100 Subject: [PATCH] backup-and-update-system: use new rotating mechanism --- .bin/backup-and-update-system | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bin/backup-and-update-system b/.bin/backup-and-update-system index 4f21154..14dc9b2 100755 --- a/.bin/backup-and-update-system +++ b/.bin/backup-and-update-system @@ -2,6 +2,8 @@ set -xeuo pipefail +backup_ssh="kunsi-t470@backup-kunsi.htz-hel.kunbox.net" + # Push some git repos pass git push git --git-dir=$HOME/.cfg/ --work-tree=$HOME push @@ -13,6 +15,7 @@ do done # Do a backup. +ssh $backup_ssh "sudo /usr/local/bin/rotate-single-backup-client kunsi-t470" ( rsync -zaAP --numeric-ids --delete --relative \ --rsync-path="/usr/bin/rsync --fake-super" \ @@ -34,7 +37,7 @@ done --exclude "/home/kunsi/VirtualBox VMs/" \ --exclude "/home/kunsi/qemu/Windows_10.qcow2" \ --exclude "/home/kunsi/tmp.*/" \ - "/home/kunsi" "kunsi-t470@htz-hel.backup-kunsi":backups/ + "/home/kunsi" "$backup_ssh":backups/ # Exit code 24 means some files have vanished during rsync. # I don't know why, but this is very common, apparently?