From 400f1051ff7a46d9e09e0ecd5fe3fd7bdbf85a03 Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 5 May 2023 18:21:28 +0200 Subject: [PATCH] stub of a script for backing up data from garrus (boot drive) to citadel --- scripts/backup_garrus.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/backup_garrus.sh diff --git a/scripts/backup_garrus.sh b/scripts/backup_garrus.sh new file mode 100755 index 0000000..107ad54 --- /dev/null +++ b/scripts/backup_garrus.sh @@ -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/