瀏覽代碼

Coquille backup scripts

test
Julien Toscano 4 年之前
父節點
當前提交
ff7c322433
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      backup/backup_files
  2. +1
    -1
      backup/backup_ldap

+ 1
- 1
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 {} \;

+ 1
- 1
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 {} \;

Loading…
取消
儲存