From 8b257378b84f57a8030a9145c1970defe970de64 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 5 Feb 2023 18:14:20 +0100 Subject: [PATCH] Provide password for backup --- roles/duplicity/files/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/duplicity/files/backup.sh b/roles/duplicity/files/backup.sh index a99a449..a27a478 100644 --- a/roles/duplicity/files/backup.sh +++ b/roles/duplicity/files/backup.sh @@ -10,8 +10,8 @@ DESTINATION="onedrive://duplicity/nas" LOG="/home/duplicity/backup.log" rm $LOG -duplicity remove-older-than $MAX_TIME $DESTINATION >> $LOG -duplicity --full-if-older-than $FULL_BACKUP_EVERY $SOURCE $DESTINATION >> $LOG +PASSPHRASE="$PASSPHRASE" duplicity remove-older-than $MAX_TIME $DESTINATION >> $LOG +PASSPHRASE="$PASSPHRASE" duplicity --full-if-older-than $FULL_BACKUP_EVERY $SOURCE $DESTINATION >> $LOG sendemail \ -f "$EMAIL_SENDER" \