Added automatic nightly SQLite backups

Resolves #22
This commit is contained in:
Donkie
2023-07-04 14:59:05 +02:00
parent 51783afe92
commit f24b9610e8
13 changed files with 221 additions and 4 deletions

View File

@@ -159,3 +159,12 @@ class Spool(BaseModel):
class HealthCheck(BaseModel):
status: str = Field(example="healthy")
class BackupResponse(BaseModel):
success: bool = Field(description="Whether the backup was created successfully.", example=True)
path: Optional[str] = Field(
default=None,
description="Path to the created backup file.",
example="/home/app/.local/share/spoolman/backups/spoolman.db",
)