From 22aea64b70515eb62b1be6594d334e13eb3f4117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Sun, 12 Mar 2017 11:26:40 +0100 Subject: [PATCH] Fix Old backup delete --- contrib/backup/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backup/functions b/contrib/backup/functions index ddb529ddf..73e8a1510 100644 --- a/contrib/backup/functions +++ b/contrib/backup/functions @@ -12,7 +12,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 -r \; + test -d ${BACKUP_DIR} && find ${BACKUP_DIR}/*_zammad_*.gz -type f -mtime +${HOLD_DAYS} -exec rm -r {} \; } function get_db_credentials () {