workspace-backup

将工作空间 git 仓库备份到 GitHub 各分支。通过 .env 配置目录列表,每天 03:00 自动执行。当用户说"workspace-backup"、"备份工作空间"、"工作空间备份"时触发。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "workspace-backup" with this command: npx skills add zhangpengle/openclaw-workspace-backup

Workspace Backup

将多个本地 git 工作空间自动备份到 GitHub,每个目录对应一个同名远程分支。

使用

workspace                    # 备份所有工作空间
workspace --backup --force   # 强制推送(解决 non-fast-forward 错误)
workspace --status           # 查看各工作空间状态及最近备份日志

每天 03:00 由 OpenClaw cron 自动执行。

配置

workspace_backup/.env(或 ~/.config/workspace/.env)中配置备份目录:

WORKSPACE_main=/home/ubuntu/.openclaw/workspace
WORKSPACE_formulas=/home/ubuntu/.openclaw/workspace-formulas

WORKSPACE_<id><id> 即为目标 GitHub 分支名。用户级 .env 优先于包级 .env。 复制 workspace_backup/.env.example.env 后修改路径即可。

前提条件

  • SSH Key 已配置,可免密 git push
  • 各工作空间目录已初始化为 git 仓库并设置远程

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Spicy Ai Video

Turn a 60-second talking head clip into 1080p high-energy edited videos just by typing what you need. Whether it's turning bland footage into visually intens...

Registry SourceRecently Updated
Coding

Video Maker Fast

Get polished MP4 videos ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim...

Registry SourceRecently Updated
Coding

Generation Generator

generate text prompts or clips into AI generated videos with this skill. Works with MP4, MOV, PNG, JPG files up to 500MB. marketers, content creators, social...

Registry SourceRecently Updated
Coding

Editor On Android

Get edited MP4 clips ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim th...

Registry SourceRecently Updated