From ff7c322433d126223912eb459bf998215833e816 Mon Sep 17 00:00:00 2001 From: Julien Toscano Date: Tue, 9 Jun 2020 23:04:34 +0200 Subject: [PATCH] Coquille backup scripts --- backup/backup_files | 2 +- backup/backup_ldap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup_files b/backup/backup_files index c94578b..9b59b72 100755 --- a/backup/backup_files +++ b/backup/backup_files @@ -13,5 +13,5 @@ HOUR=`date +%Y%m%d%H%M` tar czf ${BACKUP_ROOT_FILES}/files_${HOUR}.tar.gz /etc # Purge old backup -echo "Starting files purge process for backup older than ${BACKUP_PRODUCTS_RETENTION} ..." +echo "Starting files purge process for backup older than ${BACKUP_FILES_RETENTION} ..." find ${BACKUP_ROOT_FILES} -type f -mtime +${BACKUP_FILES_RETENTION} -exec rm -f {} \; diff --git a/backup/backup_ldap b/backup/backup_ldap index a22ea8c..a21fa06 100755 --- a/backup/backup_ldap +++ b/backup/backup_ldap @@ -22,5 +22,5 @@ HOUR=`date +%Y%m%d%H%M` tar czf ${BACKUP_ROOT_LDAP}/ldap_${HOUR}.tar.gz ${BACKUP_PATH_LDAP} && rm -rf ${BACKUP_PATH_LDAP} # Purge old backup -echo "Starting ldap purge process for backup older than ${BACKUP_PRODUCTS_RETENTION} ..." +echo "Starting ldap purge process for backup older than ${BACKUP_LDAP_RETENTION} ..." find ${BACKUP_ROOT_LDAP} -type f -mtime +${BACKUP_LDAP_RETENTION} -exec rm -f {} \;