Skip to content
Snippets Groups Projects
Verified Commit 935bfe20 authored by David Beniamine's avatar David Beniamine
Browse files

Manually launch duplicity in main backup

parent 6f494254
Branches
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment