add archiver script
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
parent
6ecc4d19b4
commit
ac2dc2d945
1 changed files with 7 additions and 0 deletions
7
backup-archive-host
Normal file
7
backup-archive-host
Normal 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}"
|
Loading…
Reference in a new issue