claw-saver

Back up OpenClaw workspace to a Git repository with Git LFS support.

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 "claw-saver" with this command: npx skills add jixsonwang/claw-saver

claw-saver

Back up OpenClaw workspace to a Git repository with Git LFS support.

Features

  • Full workspace backup to Git with atomic commits
  • Git LFS support for large model files
  • Scheduled backups via cron
  • Interactive restore with commit history
  • Snapshot mode for safe restore operations
  • Exponential backoff on push failures

Quick Start

# Initial setup: configure your Git token
openclaw config set env.OPENCLAW_BACKUP_GIT_TOKEN <your-token>

# Run your first backup
openclaw backup run

# Enable automatic backups (every 5 hours)
openclaw backup enable-cron

Configuration

Edit ~/.openclaw/skills/claw-saver/config/schema.json:

OptionDefaultDescription
repohttps://example.com/user/repoGit repository URL
cron0 */5 * * *Backup schedule (every 5 hours)
push_retries3Max push retry attempts
push_retry_interval_ms60000Initial retry delay (exponential backoff)

CLI Commands

CommandDescription
openclaw backup runRun backup immediately
openclaw backup statusShow last backup time and commit
openclaw backup restoreRestore from a previous commit
openclaw backup enable-cronEnable scheduled backups
openclaw backup disable-cronDisable scheduled backups
openclaw backup set-cron <expr>Update cron schedule

Exclusions

The following are excluded from backup:

agents/*/sessions/*.jsonl   # Session logs
skills/*/node_modules/     # Dependencies
canvas/*                   # Canvas runtime
logs/*                     # Log files
workspace/memory/.dreams/ # Temporary files
*.tmp                      # Temp files
.DS_Store                 # macOS metadata

Restore

Restore overwrites your current workspace with a previous backup:

openclaw backup restore

You will be shown recent commits and prompted for confirmation before restoring.

After restore completes, restart the OpenClaw Gateway to apply changes.

Security

  • Token is injected via URL embedding (https://<token>@host/repo)
  • stderr is redirected during git operations to prevent token leakage
  • Interactive restore requires a TTY; non-interactive use requires { confirm: true }

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.

General

V2.0 CNY RMB A股 China A shares Stock

V2.0 CNY RMB A股热搜分析 - China A Shares Stock Skill 微博热搜 + A股行情 + 关联分析 + 北向资金 + 板块轮动 + 市场情绪,一站式掌握市场热点。 关键词:A股, 大A, A-shares, China A, Onshore, 涨停, 跌停, 热搜, 北向资金,...

Registry SourceRecently Updated
General

yingmi-skill

当用户需要查询基金、策略、公告、财经资讯,做资产配置、组合诊断、风险回测、现金流分析,或生成图表、PDF 时,优先使用本 Skill 获取真实数据与可执行能力。

Registry SourceRecently Updated
General

1688 Item Title Optimizer

1688 商品标题智能优化助手 —— 自动并发执行两种优化算法生成结果。 工具能力:添加热词优化(快速、基于规则)和 LLM 深度重写(高质量、自然流畅),支持用户偏好参数。 触发词:优化标题、标题优化、改标题、重写标题、商品标题、标题改写。

Registry SourceRecently Updated
General

ZhenInsure 真机保险 | Insurance Broker

AI Insurance Broker - 智能保险经纪人,提供需求分析、产品推荐、理赔协助等全方位保险服务

Registry SourceRecently Updated