diff --git a/library/centos/roles/duplicity-backup/templates/duplicity_backup.cron.j2 b/library/centos/roles/duplicity-backup/templates/duplicity_backup.cron.j2 index 180cb4bc..37a1adaa 100644 --- a/library/centos/roles/duplicity-backup/templates/duplicity_backup.cron.j2 +++ b/library/centos/roles/duplicity-backup/templates/duplicity_backup.cron.j2 @@ -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 diff --git a/library/centos/roles/duplicity-backup/templates/duply-profile-conf.j2 b/library/centos/roles/duplicity-backup/templates/duply-profile-conf.j2 index 9f6bc06e..c93adfec 100644 --- a/library/centos/roles/duplicity-backup/templates/duply-profile-conf.j2 +++ b/library/centos/roles/duplicity-backup/templates/duply-profile-conf.j2 @@ -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.