nsbin/backup-archive-host

8 lines
396 B
Text
Raw Normal View History

2024-11-05 10:57:07 +00:00
#!/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}"