cli-backup-sync
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
概述
Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files.
通过 CLI 备份和恢复 OmniRoute 数据。触发增量快照、同步至云存储、管理备份计划,并从归档文件恢复数据。
Quick install
快速安装
bash
npm install -g omniroute # or: npx omniroute
omniroute --versionbash
npm install -g omniroute # or: npx omniroute
omniroute --versionSubcommands
子命令
backup
backupbackup
backupExample:
bash
omniroute backup示例:
bash
omniroute backupbackup create
backup createbackup create
backup createFlags:
--name <name>--cloud--encrypt--key-file <path>--exclude <pattern>--retention <n>
Example:
bash
omniroute backup create选项:
--name <name>--cloud--encrypt--key-file <path>--exclude <pattern>--retention <n>
示例:
bash
omniroute backup createbackup auto
backup autobackup auto
backup autoExample:
bash
omniroute backup auto示例:
bash
omniroute backup autobackup enable
backup enablebackup enable
backup enableFlags:
--cron <expr>--cloud--encrypt--retention <n>
Example:
bash
omniroute backup enable选项:
--cron <expr>--cloud--encrypt--retention <n>
示例:
bash
omniroute backup enablebackup disable
backup disablebackup disable
backup disableExample:
bash
omniroute backup disable示例:
bash
omniroute backup disablebackup status
backup statusbackup status
backup statusExample:
bash
omniroute backup status示例:
bash
omniroute backup statusbackup restore [backupId]
backup restore [backupId]backup restore [backupId]
backup restore [backupId]Flags:
--list--yes
Example:
bash
omniroute backup restore [backupId]选项:
--list--yes
示例:
bash
omniroute backup restore [backupId]task
tasktask
taskExample:
bash
omniroute task示例:
bash
omniroute taskcloud create
cloud createcloud create
cloud createFlags:
--title <t>--prompt <p>--prompt-file <path>--repo <url>--branch <b>--metadata <json>
Example:
bash
omniroute cloud create选项:
--title <t>--prompt <p>--prompt-file <path>--repo <url>--branch <b>--metadata <json>
示例:
bash
omniroute cloud createcloud list
cloud listcloud list
cloud listFlags:
--status <s>--limit <n>
Example:
bash
omniroute cloud list选项:
--status <s>--limit <n>
示例:
bash
omniroute cloud listcloud get <taskId>
cloud get <taskId>cloud get <taskId>
cloud get <taskId>Example:
bash
omniroute cloud get <taskId>示例:
bash
omniroute cloud get <taskId>cloud status <taskId>
cloud status <taskId>cloud status <taskId>
cloud status <taskId>Example:
bash
omniroute cloud status <taskId>示例:
bash
omniroute cloud status <taskId>cloud cancel <taskId>
cloud cancel <taskId>cloud cancel <taskId>
cloud cancel <taskId>Flags:
--yes
Example:
bash
omniroute cloud cancel <taskId>选项:
--yes
示例:
bash
omniroute cloud cancel <taskId>cloud approve <taskId>
cloud approve <taskId>cloud approve <taskId>
cloud approve <taskId>Example:
bash
omniroute cloud approve <taskId>示例:
bash
omniroute cloud approve <taskId>cloud message <taskId> <message>
cloud message <taskId> <message>cloud message <taskId> <message>
cloud message <taskId> <message>Example:
bash
omniroute cloud message <taskId> <message>示例:
bash
omniroute cloud message <taskId> <message>cloud sources <taskId>
cloud sources <taskId>cloud sources <taskId>
cloud sources <taskId>Example:
bash
omniroute cloud sources <taskId>示例:
bash
omniroute cloud sources <taskId>cloud cloud
cloud cloudcloud cloud
cloud cloudExample:
bash
omniroute cloud cloud示例:
bash
omniroute cloud cloudcloud agents
cloud agentscloud agents
cloud agentsExample:
bash
omniroute cloud agents示例:
bash
omniroute cloud agentscloud auth
cloud authcloud auth
cloud authFlags:
--no-browser--timeout <ms>
Example:
bash
omniroute cloud auth选项:
--no-browser--timeout <ms>
示例:
bash
omniroute cloud authsync
syncsync
syncExample:
bash
omniroute sync示例:
bash
omniroute syncsync push
sync pushsync push
sync pushExample:
bash
omniroute sync push示例:
bash
omniroute sync pushsync pull [outPath]
sync pull [outPath]sync pull [outPath]
sync pull [outPath]Example:
bash
omniroute sync pull omniroute-export.tar.gz示例:
bash
omniroute sync pull omniroute-export.tar.gzsync bundle <outPath>
sync bundle <outPath>sync bundle <outPath>
sync bundle <outPath>Flags:
--token <syncToken>
Example:
bash
omniroute sync bundle <outPath>选项:
--token <syncToken>
示例:
bash
omniroute sync bundle <outPath>sync import <bundlePath>
sync import <bundlePath>sync import <bundlePath>
sync import <bundlePath>Flags:
--dry-run
Example:
bash
omniroute sync import <bundlePath>选项:
--dry-run
示例:
bash
omniroute sync import <bundlePath>sync initialize
sync initializesync initialize
sync initializeExample:
bash
omniroute sync initialize示例:
bash
omniroute sync initializesync tokens
sync tokenssync tokens
sync tokensExample:
bash
omniroute sync tokens示例:
bash
omniroute sync tokenssync list
sync listsync list
sync listExample:
bash
omniroute sync list示例:
bash
omniroute sync listsync create
sync createsync create
sync createFlags:
--name <n>--scope <s>--ttl <duration>
Example:
bash
omniroute sync create选项:
--name <n>--scope <s>--ttl <duration>
示例:
bash
omniroute sync createsync revoke <id>
sync revoke <id>sync revoke <id>
sync revoke <id>Flags:
--yes
Example:
bash
omniroute sync revoke <id>选项:
--yes
示例:
bash
omniroute sync revoke <id>sync status
sync statussync status
sync statusExample:
bash
omniroute sync status示例:
bash
omniroute sync status