add archiver script
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s

This commit is contained in:
Nico Schottelius 2024-11-05 19:57:07 +09:00
parent 6ecc4d19b4
commit ac2dc2d945

7
backup-archive-host Normal file
View file

@ -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}"