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:
parent
ccb9ca3226
commit
a77de6a442
@ -24,7 +24,7 @@ function zammad_backup {
|
|||||||
|
|
||||||
# delete old backups
|
# delete old backups
|
||||||
if [ -d "${BACKUP_DIR}" ] && [ -n "$(ls "${BACKUP_DIR}")" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ "${NO_FILE_BACKUP}" != "yes" ]; then
|
if [ "${NO_FILE_BACKUP}" != "yes" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user