nsbin/backup-archive-host
Nico Schottelius ac2dc2d945
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
add archiver script
2024-11-05 19:57:07 +09:00

7 lines
396 B
Bash

#!/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}"