From 935bfe20c637014823a650bd5761799ab867ea0e Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Fri, 4 Jun 2021 12:03:12 +0200 Subject: [PATCH] Manually launch duplicity in main backup --- backup.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 7433708..d740992 100755 --- a/backup.sh +++ b/backup.sh @@ -36,11 +36,20 @@ backup(){ pre_actions exit_on_fail $? "Pre_action failed" echo "Creating encrypted incremental backup: $bckplist " - run_duplicity --full-if-older-than $BK_FULL_FREQ \ + export PASSPHRASE="$encpass" + export FTP_PASSWORD="$ftppass" + set -x + /usr/bin/duplicity --verbosity $verbosity \ + --full-if-older-than $BK_FULL_FREQ \ --include ${bckplist// / --include } \ --exclude /root/.cache/duplicity/ \ - / + --exclude '**' \ + / \ + $remote ret=$? + set +x + unset PASSPHRASE + unset FTP_PASSWORD if [ -z "$retries" ] then retrie_on_fail $ret "Duplicity failed" -- GitLab