Update backup.sh (#204)

i suppose this change should be reflected here as well; 3d86eb8543

Co-authored-by: André Bauer <monotek@users.noreply.github.com>
This commit is contained in:
olafbuitelaar 2021-04-24 19:50:55 +02:00 committed by GitHub
parent ccb9ca3226
commit a77de6a442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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