X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=backup;fp=backup;h=4e5c4b757ad480c1ea8cf857043bcc03d297aeee;hp=f09f50d3806befc4fd92d6767e0fd57b8675f3d0;hb=2d0d79e3437cf1e2a7be130aa1654249849fde6b;hpb=b88159fdb3ba264d5a096e8b99a41f968586bfcb diff --git a/backup b/backup index f09f50d..4e5c4b7 100755 --- a/backup +++ b/backup @@ -27,6 +27,6 @@ fi notify-send "Backup started" mkdir -p $(dirname $LOG) -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; } +env PASSPHRASE="$(cat ~/.config/backup-passphrase)" duplicity --allow-source-mismatch --full-if-older-than 1M --exclude-filelist ~/.config/backup-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