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 --version
bash
npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

子命令

backup

backup

Example:
bash
omniroute backup
示例:
bash
omniroute backup

backup create

backup create

Flags:
  • --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 create

backup auto

backup auto

Example:
bash
omniroute backup auto
示例:
bash
omniroute backup auto

backup enable

backup enable

Flags:
  • --cron <expr>
  • --cloud
  • --encrypt
  • --retention <n>
Example:
bash
omniroute backup enable
选项:
  • --cron <expr>
  • --cloud
  • --encrypt
  • --retention <n>
示例:
bash
omniroute backup enable

backup disable

backup disable

Example:
bash
omniroute backup disable
示例:
bash
omniroute backup disable

backup status

backup status

Example:
bash
omniroute backup status
示例:
bash
omniroute backup status

backup restore [backupId]

backup restore [backupId]

Flags:
  • --list
  • --yes
Example:
bash
omniroute backup restore [backupId]
选项:
  • --list
  • --yes
示例:
bash
omniroute backup restore [backupId]

task

task

Example:
bash
omniroute task
示例:
bash
omniroute task

cloud create

cloud create

Flags:
  • --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 create

cloud list

cloud list

Flags:
  • --status <s>
  • --limit <n>
Example:
bash
omniroute cloud list
选项:
  • --status <s>
  • --limit <n>
示例:
bash
omniroute cloud list

cloud get <taskId>

cloud get <taskId>

Example:
bash
omniroute cloud get <taskId>
示例:
bash
omniroute cloud get <taskId>

cloud status <taskId>

cloud status <taskId>

Example:
bash
omniroute cloud status <taskId>
示例:
bash
omniroute cloud status <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>

Example:
bash
omniroute cloud approve <taskId>
示例:
bash
omniroute cloud approve <taskId>

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>

Example:
bash
omniroute cloud sources <taskId>
示例:
bash
omniroute cloud sources <taskId>

cloud cloud

cloud cloud

Example:
bash
omniroute cloud cloud
示例:
bash
omniroute cloud cloud

cloud agents

cloud agents

Example:
bash
omniroute cloud agents
示例:
bash
omniroute cloud agents

cloud auth

cloud auth

Flags:
  • --no-browser
  • --timeout <ms>
Example:
bash
omniroute cloud auth
选项:
  • --no-browser
  • --timeout <ms>
示例:
bash
omniroute cloud auth

sync

sync

Example:
bash
omniroute sync
示例:
bash
omniroute sync

sync push

sync push

Example:
bash
omniroute sync push
示例:
bash
omniroute sync push

sync pull [outPath]

sync pull [outPath]

Example:
bash
omniroute sync pull omniroute-export.tar.gz
示例:
bash
omniroute sync pull omniroute-export.tar.gz

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>

Flags:
  • --dry-run
Example:
bash
omniroute sync import <bundlePath>
选项:
  • --dry-run
示例:
bash
omniroute sync import <bundlePath>

sync initialize

sync initialize

Example:
bash
omniroute sync initialize
示例:
bash
omniroute sync initialize

sync tokens

sync tokens

Example:
bash
omniroute sync tokens
示例:
bash
omniroute sync tokens

sync list

sync list

Example:
bash
omniroute sync list
示例:
bash
omniroute sync list

sync create

sync create

Flags:
  • --name <n>
  • --scope <s>
  • --ttl <duration>
Example:
bash
omniroute sync create
选项:
  • --name <n>
  • --scope <s>
  • --ttl <duration>
示例:
bash
omniroute sync create

sync revoke <id>

sync revoke <id>

Flags:
  • --yes
Example:
bash
omniroute sync revoke <id>
选项:
  • --yes
示例:
bash
omniroute sync revoke <id>

sync status

sync status

Example:
bash
omniroute sync status
示例:
bash
omniroute sync status