diff --git a/contrib/backup/functions b/contrib/backup/functions index ddb529ddf..61a6f6c52 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 {} \; } function get_db_credentials () {