Update backup.sh
i suppose this change should be reflected here as well; 3d86eb8543
This commit is contained in:
parent
8eadbd39a1
commit
da99222587
@ -24,7 +24,7 @@ function zammad_backup {
|
||||
|
||||
# delete old backups
|
||||
if [ -d "${BACKUP_DIR}" ] && [ -n "$(ls "${BACKUP_DIR}")" ]; then
|
||||
find "${BACKUP_DIR}"/*_zammad_*.gz -type f -mtime +"${HOLD_DAYS}" -exec rm {} \;
|
||||
find "${BACKUP_DIR}"/*_zammad_*.gz -type f -mtime +"${HOLD_DAYS}" -delete
|
||||
fi
|
||||
|
||||
if [ "${NO_FILE_BACKUP}" != "yes" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user