stub of a script for backing up data from garrus (boot drive) to citadel
This commit is contained in:
parent
fdac96925a
commit
400f1051ff
10
scripts/backup_garrus.sh
Executable file
10
scripts/backup_garrus.sh
Executable 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/
|
Loading…
Reference in New Issue
Block a user