Files

21 lines
801 B
Python
Raw Permalink Normal View History

"""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)."""