Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Jul 29, 2024
1 parent 916ce30 commit fba8ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tools/db_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fba8ad8

Please sign in to comment.