stub of a script for backing up data from garrus (boot drive) to citadel

This commit is contained in:
fabian 2023-05-05 18:21:28 +02:00
parent fdac96925a
commit 400f1051ff

10
scripts/backup_garrus.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
shopt -s expand_aliases # make aliases work
REL_HOME=$HOME
source $REL_HOME/.bash_aliases
sd rsync_backup -e "ssh -i $REL_HOME/.ssh/id_ed25519" ./ fabian@garrus:/citadel/backup/garrus/
sd rsync_backup --link-dest="/etc/ssh/" /etc/ssh/ ssh/