omni-db-backups

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- 由 src/lib/agentSkills/generator.ts 生成;手动修改将被覆盖 -->

Overview

概述

Trigger system backups, restore from backup files, and manage the SQLite database lifecycle. Supports export, import, and incremental snapshot strategies.
触发系统备份、从备份文件恢复,以及管理 SQLite 数据库生命周期。支持导出、导入和增量快照策略。

Authentication

身份验证

All requests require a valid Bearer token or session cookie. Obtain a token via
POST /api/auth/login
or configure
REQUIRE_API_KEY=false
for local development.
所有请求都需要有效的 Bearer token 或 session cookie。可通过
POST /api/auth/login
获取 token,或在本地开发环境中配置
REQUIRE_API_KEY=false
。

Endpoints

API 端点

GET /api/system/env/repair

GET /api/system/env/repair

GET system › env › repair
bash
curl http://localhost:20128/api/system/env/repair \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET system › env › repair
bash
curl http://localhost:20128/api/system/env/repair \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/system/env/repair

POST /api/system/env/repair

POST system › env › repair
bash
curl -X POST http://localhost:20128/api/system/env/repair \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
POST system › env › repair
bash
curl -X POST http://localhost:20128/api/system/env/repair \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/system/version

GET /api/system/version

GET system › version
Running version, latest published version, auto-update status and npm release channel.
releaseChannel
and
channels
are additive (rail 3.8.54);
channel
keeps meaning the deployment mode used by the dashboard updater.
bash
curl http://localhost:20128/api/system/version \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET system › version
当前运行版本、最新发布版本、自动更新状态和 npm 发布渠道。
releaseChannel
和
channels
是新增字段(rail 3.8.54);
channel
仍表示 Dashboard 更新器所使用的部署模式。
bash
curl http://localhost:20128/api/system/version \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN"

POST /api/system/version

POST /api/system/version

POST system › version
bash
curl -X POST http://localhost:20128/api/system/version \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
POST system › version
bash
curl -X POST http://localhost:20128/api/system/version \
  -H "Authorization: Bearer $OMNIROUTE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Payloads

请求载荷

See the full OpenAPI specification at
GET /api/openapi/spec
or
docs/openapi.yaml
for detailed request/response schemas.
有关详细的请求/响应 schema,请参阅
GET /api/openapi/spec
或
docs/openapi.yaml
中的完整 OpenAPI specification。