1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

fix borg backup script

This commit is contained in:
eoli3n 2020-01-05 17:32:16 +01:00
parent 1f9fd86a73
commit 990a76df22

@ -6,7 +6,7 @@ SERVER=root@neon
ROOT=/home
REPOSITORY=$SERVER:$DIR
if [[ ! $(ssh $SERVER BORG_PASSPHRASE=$BORG_PASSPHRASE borg list $DIR >/dev/null 2>&1) ]]
if [[ ! $(ssh $SERVER BORG_PASSPHRASE=$BORG_PASSPHRASE borg list $DIR) ]]
then
ssh $SERVER mkdir -p $DIR
borg init --encryption=repokey-blake2 $REPOSITORY