From 3d86eb8543ea0056c18671f92b5ccec6de8d7170 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Tue, 20 Apr 2021 08:02:33 +0200 Subject: [PATCH] Fixes #3516 - Use -delete instead of -exec --- contrib/backup/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backup/functions b/contrib/backup/functions index 0700aeb8a..c25823072 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -16,7 +16,7 @@ function get_backup_date () { } function delete_old_backups () { - test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm {} \; + test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -delete } function get_db_credentials () {