Backup Working

This commit is contained in:
oliver
2026-06-22 08:26:22 -03:00
parent af2fe940e7
commit 1bfa379dad
2 changed files with 5 additions and 1 deletions
+5 -1
View File
@@ -561,7 +561,11 @@ def backup_check(request: BackupCheckRequest):
@app.get("/backup/all", dependencies=[Depends(verify_api_key)])
def backup_all():
return {"message": run_command([f"{BIN_PATH}/backupAll"])}
try:
run_command([f"{BIN_PATH}/backupAll"])
except HTTPException:
pass
return {"message": "backupAll triggered"}
@app.get("/backup/borgpush", dependencies=[Depends(verify_api_key)])