duply configuration: raise the max open files. Force a full backup regularly.

This commit is contained in:
Andrea Dell'Amico 2020-05-24 13:35:59 +02:00
parent e05633878e
commit 3e0854480e
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ DUPLY=/usr/bin/duply
D_PROFILE={{ duply_default_profile }}
LOG_FILE={{ duplicity_cron_job_logfile }}
LOCK_FILE={{ duplicity_temp_dir }}/.duply-backup.lock
ulimit -n 32000
if [ ! -f $LOCK_FILE ] ; then
echo $$ > $LOCK_FILE

View File

@ -121,8 +121,8 @@ MAX_FULLS_WITH_INCRS={{ duplicity_max_full_with_incrs }}
# forces a full backup if last full backup reaches a specified age, for the
# format of MAX_FULLBKP_AGE see duplicity man page, chapter TIME_FORMATS
# Uncomment the following two lines to enable this setting.
#MAX_FULLBKP_AGE=1M
#DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE "
MAX_FULLBKP_AGE={{ duplicity_max_backup_age }}
DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE "
# sets duplicity --volsize option (available since v0.4.3.RC7)
# set the size of backup chunks to VOLSIZE MB instead of the default 25MB.