Files
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

11 lines
333 B
Python

from fastapi import HTTPException
from services import pki
def forbid_during_restore():
"""Dependency of the routes that change the PKI, the profiles or the settings: 409 while a
backup restore replaces them."""
if pki.is_restore_running():
raise HTTPException(status_code=409, detail=pki.RESTORE_RUNNING_MSG)