Backup and Restore: packages, Local/S3/SFTP/FTP destinations, UI and API

Encrypted packages (databases, PKI, client profiles) with safe restore and
a pre-restore safety copy, usable for server-to-server migration across
container and system-service installs. New Management page, ovp_backups
volume, migrations code in the profiler image, server name in package names.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-07 09:38:09 +03:00
1 parent d29c261347
commit f8cdcd0fc6
55 files changed
+4401 -37

No files matched your search

@@ -13,6 +13,7 @@ Paths and owners, the environment file, the root helper configuration and securi
| Profiler log | `<prefix>/APP_PROFILER/profiler.log` | `ovpmon:ovpmon` 640 |
| Shipped settings file | `<prefix>/APP_CORE/config.ini`, `<prefix>/APP_PROFILER/config.ini` | `root:root`; the environment file overrides it |
| **Databases** | `/var/lib/ovpmon/openvpn_monitor.db`, `ovpn_profiler.db`, migration copies `*.db.bak-*` | `ovpmon:ovpmon` |
| **Local backup packages** (Backup and Restore page), `ovpmon_backup.db` | `/var/lib/ovpmon/backups/` (created by the service, folders 700, files 600; root set by `OVPMON_BACKUP_LOCAL_ROOT`), `/var/lib/ovpmon/ovpmon_backup.db` | `ovpmon:ovpmon` |
| Staging of `server.conf` | `/var/lib/ovpmon/staging/` | `ovpmon:ovpmon` 750 |
| Service environment | `/etc/ovpmon/env` | `root:root` 600 |
| Helper configuration | `/etc/ovpmon/helper.conf` | `root:root` 644 |