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>
11 lines
333 B
Python
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)
|