Skip to content

Maintenance

Database housekeeping, scheduled orphan cleanup, and one-off tools.

Headless ENV

Map config keys below to NZBDAV_CONFIG__... with the naming algorithm. Schedule times are minutes from midnight in container TZ (180 = 03:00). One-off maintenance tasks remain out of the ENV overlay.

Settings

Control Config key Default Effect
Vacuum on startup db.is-startup-vacuum-enabled off Reclaim SQLite space; may slow start
SAB history retention (days) database.history-retention-days 90 Does not delete WebDAV; 0 = keep all
Health-check retention (days) database.healthcheck-retention-days 30 0 = keep all
Enable daily orphan cleanup maintenance.remove-orphaned-schedule-enabled off Remove Orphaned Files schedule
Daily run time maintenance.remove-orphaned-schedule-time midnight (0) Minutes from midnight; uses container TZ

Tasks (actions)

Task Purpose Caution
Remove Orphaned Files Drop WebDAV files not linked from library Permanent; dry run available
Rename Windows-Invalid Paths Sanitize existing names Needs Windows-safe paths; backup + dry run
Convert STRM โ†’ Symlinks Strategy migration Needs library dir + rclone mount
Recreate STRM Files Refresh sidecars Needs STRM strategy + completed dir + base URL
Migrate blobs to blobstore Background optimization Usually automatic
Reset Health-Check Statistics Clear HC history Cannot undo
Reset Overview Statistics since 0.8.0 Clear overview metrics Cannot undo

Retention ยท Deletion audit