From fdac96925a2c1ad1cfd5a68d4ac58ba1c4c97afa Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 4 May 2023 19:47:41 +0200 Subject: [PATCH] first version (template) for backing up edi - to garrus - from locally to the backup dir --- scripts/backup_edi.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 scripts/backup_edi.sh diff --git a/scripts/backup_edi.sh b/scripts/backup_edi.sh old mode 100644 new mode 100755 index e69de29..111f377 --- a/scripts/backup_edi.sh +++ b/scripts/backup_edi.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/edi/ + +sd rsync_backup --link-dest="/etc/ssh/" /etc/ssh/ ssh/