diff --git a/containers/zammad-postgresql/backup.sh b/containers/zammad-postgresql/backup.sh index c74b71e..962730e 100644 --- a/containers/zammad-postgresql/backup.sh +++ b/containers/zammad-postgresql/backup.sh @@ -16,7 +16,7 @@ function zammad_backup { echo "${TIMESTAMP} - backuping zammad..." # 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} -exec rm {} \; || true # tar files tar -czf ${BACKUP_DIR}/${TIMESTAMP}_zammad_files.tar.gz ${ZAMMAD_DIR}