MCPcopy
hub / github.com/AstrBotDevs/AstrBot / create_backup

Function create_backup

astrbot/dashboard/api/backups.py:133–137  ·  view source on GitHub ↗
(
    _auth: AuthContext = Depends(require_system_scope),
    service: BackupService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

131
132@router.post("/backups")
133async def create_backup(
134 _auth: AuthContext = Depends(require_system_scope),
135 service: BackupService = Depends(get_service),
136):
137 return await _run(service.export_backup, prefix="创建备份失败")
138
139
140@legacy_router.post("/export")

Callers

nothing calls this directly

Calls 1

_runFunction · 0.70

Tested by

no test coverage detected