]> piware.de Git - bin.git/commitdiff
backup: passphrase moved to .config
authorMartin Pitt <martin@piware.de>
Wed, 28 Dec 2022 09:49:48 +0000 (10:49 +0100)
committerMartin Pitt <martin@piware.de>
Wed, 28 Dec 2022 09:49:48 +0000 (10:49 +0100)
backup

diff --git a/backup b/backup
index bee524bbc6d3a7ab5a2d196a1c48178f2bc4afe2..f09f50d3806befc4fd92d6767e0fd57b8675f3d0 100755 (executable)
--- a/backup
+++ b/backup
@@ -27,6 +27,6 @@ fi
 
 notify-send "Backup started"
 mkdir -p $(dirname $LOG)
-env PASSPHRASE="$(cat ~/.backup-passphrase)" duplicity --allow-source-mismatch --full-if-older-than 1M --exclude-filelist ~/.config/duplicity-ignore . rsync://piware.de/backup/laptop >> $LOG || { notify-send "BACKUP FAILED!"; exit 1; }
+env PASSPHRASE="$(cat ~/.config/backup-passphrase)" duplicity --allow-source-mismatch --full-if-older-than 1M --exclude-filelist ~/.config/duplicity-ignore . rsync://piware.de/backup/laptop >> $LOG || { notify-send "BACKUP FAILED!"; exit 1; }
 notify-send "Backup finished successfully"
 duplicity remove-all-but-n-full 6 --force rsync://piware.de/backup/laptop