From ac2dc2d94584b333a8b49d1542b752e62f9fad6d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 5 Nov 2024 19:57:07 +0900 Subject: [PATCH] add archiver script --- backup-archive-host | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 backup-archive-host diff --git a/backup-archive-host b/backup-archive-host new file mode 100644 index 0000000..7ad7050 --- /dev/null +++ b/backup-archive-host @@ -0,0 +1,7 @@ +#!/bin/sh +# Nico Schottelius, 2024-11-05, Deokso +# Archive an host - the last time a backup is being done + +host=$(hostname) + +sudo rsync --delete-excluded --exclude /var/lib/docker --exclude /var/lib/flatpak --exclude /tmp --exclude /home/nico/movies --exclude /home/nico/.cache --delete -e 'ssh -i /home/nico/.ssh/id_rsa' -avx --progress / "root@loch.un.ge.nau.so:/raid/archive/hosts/${host}"