The settings on this page are under Settings → Data and backups. Database backups, retention and maintenance act on the whole installation, so in MSP mode only the provider’s admins see them.
Automatic database backups
Automatic database backups takes full PostgreSQL backups of the whole installation on a schedule:
- Tick Enabled and set the Interval (hours) and the Retention (days).
- Optionally set a fixed start time with its time zone (for example 03:00). Without it, each backup starts one interval after the previous one ended.
- Save. Run backup now takes one immediately.
The last run’s status, size and duration are shown. Backups are written to /opt/netmon/backups on the server. The Backup files list shows every file - scheduled ones and the safety backups taken before each update (the newest 3 of those are kept) - and Delete removes one for good.
Off-site copies
A backup on the same disk as the database does not survive a disk failure. Add at least one off-site copy:
- Off-site copy (SFTP) - after each backup the file is uploaded to another server: address, port, username, password or private key, and the folder. Test connection learns the server’s host key and pins it; backups are only ever sent to that key. Remote copies past the retention period are removed.
- Copy to an NFS share - after each backup the file is also copied to an NFS export on a NAS or file server (NFSv4, then v3). Nothing is mounted on the Monitoring server. Enter the NFS server, the export path and a folder inside it, and test that the share is writable.
Warning
Stored device credentials are encrypted with /opt/netmon/keys/secret.key, which is deliberately not part of the backup. Keep a copy of the key somewhere safe; a restore needs both.
Restore on a new server
-
Install the same Monitoring version on the new server.
-
Put
secret.keyback into/opt/netmon/keys/. -
Stop the API and the collector, then restore the dump with the script in the installation directory - it handles the TimescaleDB steps and the application database role:
cd /opt/netmon docker compose stop api collector sudo ./ops/restore.sh /opt/netmon/backups/<backup file>.dump docker compose up -d
A restore replaces the whole database; it is not a merge.
Configuration backup
Configuration backup exports your organization’s configuration - devices, groups, notification channels, alert rules and thresholds - as one file. It contains real secrets, so store it safely.
Restore from backup imports such a file into any installation. It always creates new records and never overwrites existing ones, which also makes it a way to copy a configuration to a second installation.
Data retention
Data retention & cleanup shows how long each kind of data is kept and lets you change it per table. Clean up now runs the retention jobs at once. See Data, history and retention for the defaults.
Maintenance
Important
Scheduled and disk-triggered maintenance is available in the Business edition and above. Manual runs and the command line work in every edition.
Maintenance keeps the database lean:
| Task | What it does |
|---|---|
| Drop data past its retention period | Applies the retention settings now |
| Remove stale records | Old diagnostics, resolved findings, delivered notifications |
| Optimize the database (VACUUM ANALYZE) | Reclaims space and refreshes statistics |
- Preview shows what each task would remove.
- Run now starts a run in the background; the page follows it. One run at a time.
- Schedule: daily or weekly (Mondays) at an hour (UTC).
- Also run when the disk is at least this full: a threshold that triggers a run automatically.
- Recent runs shows each run’s trigger, status and result.
From the command line:
docker exec netmon-api python -m app.cli maintenance list
docker exec netmon-api python -m app.cli maintenance run --all --dry-run
docker exec netmon-api python -m app.cli maintenance run --all
python -m app.cli license-status in the same container prints the installed edition, limits, features and check-in state.