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

+2 -1
View File
@@ -4,6 +4,7 @@ from services import process, pki
from database import get_db
from sqlalchemy.orm import Session
from utils.auth import verify_token
from utils.guards import forbid_during_restore
from typing import Optional
from fastapi import Depends
@@ -22,7 +23,7 @@ class ProcessStats(BaseModel):
memory_mb: float
uptime: Optional[str] = None
@router.post("/server/process/{action}", response_model=ProcessActionResponse)
@router.post("/server/process/{action}", response_model=ProcessActionResponse, dependencies=[Depends(forbid_during_restore)])
def manage_process(action: str, db: Session = Depends(get_db)):
"""
Control the OpenVPN server process.