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

+9 -1
View File
@@ -91,7 +91,11 @@ services:
start_period: 30s
app-profiler:
build: ./APP_PROFILER
build:
context: ./APP_PROFILER
# Migration code of the monitoring database for the restore (docker compose 2.17 or newer)
additional_contexts:
core: ./APP_CORE
container_name: ovp-profiler
restart: unless-stopped
cap_add:
@@ -111,11 +115,14 @@ services:
- db_data:/app/db
- ovp_client_config:/app/client-config
- ovp_pki:/app/easy-rsa
# Local backup packages (Backup and Restore page); not part of deploy/docker backup.sh
- ovp_backups:/app/backups
networks:
- ovp-net
environment:
<<: *jwt-secret
OVPMON_PROFILER_DB_PATH: /app/db/ovpn_profiler.db
OVPMON_BACKUP_LOCAL_ROOT: /app/backups
OVPMON_CORS_ORIGINS: ${OVPMON_CORS_ORIGINS:-}
healthcheck:
# GET / of the FastAPI app must answer 200
@@ -135,3 +142,4 @@ volumes:
ovp_pki:
ovp_client_config:
db_data:
ovp_backups: