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

Set default timeout to 60 seconds

parent 3f7d1fc5
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ verbosity="info"
# Set an arcihve directory, subdir of /root/.cache/duplicity
archive_dir=""
log_file=/var/log/bckp.log
timeout=60
BK_FULL_FREQ="3W" # create a new full backup every...
......
......@@ -46,6 +46,7 @@ backup(){
export FTP_PASSWORD="$ftppass"
set -x
/usr/bin/duplicity --verbosity $verbosity \
--timeout $timeout \
--full-if-older-than $BK_FULL_FREQ \
--include ${bckplist// / --include } \
--exclude /root/.cache/duplicity/ \
......
......@@ -20,6 +20,10 @@ if [ -z "$verbosity" ]; then
verbosity="notice"
fi
if [ -z "$timeout" ]; then
timeout=60
fi
remote="ftp://$user@$host/$remotedir/"
# Exit the script and sendmail
......@@ -53,6 +57,7 @@ run_duplicity(){
export FTP_PASSWORD="$ftppass"
set -x
/usr/bin/duplicity --verbosity $verbosity \
--timeout $timeout \
$@ \
$remote
set +x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment