Backup and restore

Settings → Backup and restore → Download backup gives you a consistent snapshot of the whole database (devices, history, settings, saved credentials) and the installed plugins (their code, not the built-in ones) while Netlens keeps running. A restore into a new container therefore brings everything back as it was, plugins included and switched on as before; the plugin versions of the backup replace the installed ones. Backups made before 0.3.129 have no plugin code: restore them, then install the plugins again from the Plugins page (it lists them, and their settings come back). Restore from file replaces the current data with a backup; it asks for confirmation, refuses to run during a scan, keeps a safety copy of the previous data next to the database (netlens.db.pre-restore), and upgrades a backup made by an older version automatically. A backup from a newer Netlens version is refused. Treat backup files like passwords because they contain the saved SMTP and plugin credentials.