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
参数
| Argument | Description |
|---|---|
| Configure and start backup automation |
| Show active backups and last sync |
| Disable backup for current session |
| View recent backup commits |
| GitHub repository (e.g., |
| Sync interval (e.g., |
| Split at idle time |
| Include session metadata |
| 参数 | 说明 |
|---|---|
| 配置并启动自动备份 |
| 显示活跃备份和上次同步情况 |
| 禁用当前会话的备份 |
| 查看最近备份提交 |
| GitHub 仓库(例如: |
| 同步间隔(例如: |
| 空闲时拆分 |
| 包含会话元数据 |
Execution
执行
Invoke the skill with user-selected options.
asciinema-streaming-backup使用用户选择的选项调用 skill。
asciinema-streaming-backupSkip Logic
跳过逻辑
- If action provided -> skip Phase 1 (action selection)
- If and
-rprovided -> skip Phase 2-3 (config and repo)-i
- 如果提供了操作 -> 跳过第1阶段(操作选择)
- 如果提供了和
-r-> 跳过第2-3阶段(配置和仓库)-i
Workflow
工作流程
- Preflight: Check gh CLI and fswatch
- Action: AskUserQuestion for action type
- Config: AskUserQuestion for backup settings
- Repo: AskUserQuestion for repository selection
- Execute: Run selected action
- 预检:检查gh CLI和fswatch
- 操作:询问用户选择操作类型
- 配置:询问用户备份设置
- 仓库:询问用户选择仓库
- 执行:运行选中的操作
Examples
示例
bash
undefinedbash
undefinedCheck 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
undefinedTroubleshooting
故障排查
| Issue | Cause | Solution |
|---|---|---|
| gh not found | gh CLI not installed | |
| fswatch not found | fswatch not installed | |
| Auth error | GitHub token invalid/expired | Run |
| Orphan branch error | Branch not initialized | Run |
| No recordings found | No active .cast files | Start a recording first |
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 未找到gh | gh CLI未安装 | |
| 未找到fswatch | fswatch未安装 | |
| 认证错误 | GitHub token无效/已过期 | 运行 |
| 孤立分支错误 | 分支未初始化 | 运行 |
| 未找到录制文件 | 无活跃.cast文件 | 请先启动录制 |