8 lines
396 B
Text
8 lines
396 B
Text
|
#!/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}"
|