change backup service

This commit is contained in:
2025-12-20 22:30:18 +07:00
parent 243abe55b5
commit 5c073705d8
2 changed files with 67 additions and 7 deletions

View File

@@ -79,6 +79,8 @@ def create_backup() -> tuple[str, bytes]:
config.DB_NAME,
"--no-owner",
"--no-acl",
"--clean", # Add DROP commands before CREATE
"--if-exists", # Use IF EXISTS with DROP commands
"-F",
"p", # plain SQL format
]