diff --git a/scripts/tools/db_backup.sh b/scripts/tools/db_backup.sh index 309ceeae..e9efe247 100755 --- a/scripts/tools/db_backup.sh +++ b/scripts/tools/db_backup.sh @@ -15,4 +15,4 @@ log "Backing up database..." "INFO" $SQLITE3 "${NOAA_HOME}/db/panel.db" ".backup '$NOAA_HOME/db_backups/panel.db.$dt.backup'" log "Pruning database backups older than 3 days..." "INFO" -find "${NOAA_HOME}/db_backups/" -type f -mtime +3 -name panel.db.*.backup +find "${NOAA_HOME}/db_backups/" -type f -mtime +3 -name "panel.db.*.backup" -delete