backup

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/asciinema-tools:backup

/asciinema-tools:backup

Configure and manage streaming backup to GitHub orphan branch.
配置并管理流备份到GitHub孤立分支。

Arguments

参数

ArgumentDescription
install
Configure and start backup automation
status
Show active backups and last sync
stop
Disable backup for current session
history
View recent backup commits
-r, --repo
GitHub repository (e.g.,
owner/repo
)
-i, --interval
Sync interval (e.g.,
30s
,
5m
)
--chunk
Split at idle time
--meta
Include session metadata
参数说明
install
配置并启动自动备份
status
显示活跃备份和上次同步情况
stop
禁用当前会话的备份
history
查看最近备份提交
-r, --repo
GitHub 仓库(例如:
owner/repo
-i, --interval
同步间隔(例如:
30s
5m
--chunk
空闲时拆分
--meta
包含会话元数据

Execution

执行

Invoke the
asciinema-streaming-backup
skill with user-selected options.
使用用户选择的选项调用
asciinema-streaming-backup
skill。

Skip Logic

跳过逻辑

  • If action provided -> skip Phase 1 (action selection)
  • If
    -r
    and
    -i
    provided -> skip Phase 2-3 (config and repo)
  • 如果提供了操作 -> 跳过第1阶段(操作选择)
  • 如果提供了
    -r
    -i
    -> 跳过第2-3阶段(配置和仓库)

Workflow

工作流程

  1. Preflight: Check gh CLI and fswatch
  2. Action: AskUserQuestion for action type
  3. Config: AskUserQuestion for backup settings
  4. Repo: AskUserQuestion for repository selection
  5. Execute: Run selected action
  1. 预检:检查gh CLI和fswatch
  2. 操作:询问用户选择操作类型
  3. 配置:询问用户备份设置
  4. 仓库:询问用户选择仓库
  5. 执行:运行选中的操作

Examples

示例

bash
undefined
bash
undefined

Check current backup status

查看当前备份状态

/asciinema-tools:backup status
/asciinema-tools:backup status

Configure and start backup automation

配置并启动自动备份

/asciinema-tools:backup install
/asciinema-tools:backup install

View recent backup history

查看最近备份历史

/asciinema-tools:backup history
/asciinema-tools:backup history

Stop backup for current session

停止当前会话的备份

/asciinema-tools:backup stop
undefined
/asciinema-tools:backup stop
undefined

Troubleshooting

故障排查

IssueCauseSolution
gh not foundgh CLI not installed
brew install gh
fswatch not foundfswatch not installed
brew install fswatch
Auth errorGitHub token invalid/expiredRun
gh auth login
Orphan branch errorBranch not initializedRun
/asciinema-tools:daemon-setup
No recordings foundNo active .cast filesStart a recording first
问题原因解决方案
未找到ghgh CLI未安装
brew install gh
未找到fswatchfswatch未安装
brew install fswatch
认证错误GitHub token无效/已过期运行
gh auth login
孤立分支错误分支未初始化运行
/asciinema-tools:daemon-setup
未找到录制文件无活跃.cast文件请先启动录制