Files
OpenVPN-Monitoring-Simple/APP_PROFILER/services/backup/__init__.py
T
ayurishchevandClaude Sonnet 5.5 f8cdcd0fc6 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>
2026-10-07 09:38:09 +03:00

22 lines
801 B
Python

"""Backup and restore of the application data (databases, PKI, client profiles).
Modules:
package.py package format (tar.gz + manifest), snapshots, safe extraction
crypto.py optional package encryption (AES-256-GCM, scrypt)
destinations.py where packages go: common interface, local folder and S3 (minio)
store.py settings, destinations and history in a separate SQLite file
engine.py backup job and restore engine (one background job at a time)
"""
class BackupError(Exception):
"""A backup or restore step failed. The message is safe to show to the user (no secrets)."""
class Invalid(BackupError):
"""The request cannot be accepted as it is (API: 400)."""
class Busy(BackupError):
"""Another backup or restore job is running (API: 409)."""