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

微信读书 AI 阅读助手

微信读书 AI 阅读助手 - 扫码登录、阅读进度跟踪、章节内容存档、AI 对话

Registry SourceRecently Updated
General

SS Requirements to Teambition

从 SaleSmartly 客服会话中自动采集带标签的对话,经 AI 分析提取需求,创建 Teambition 任务。用于客服反馈→需求管理自动化。触发词:SS需求采集、客服需求整理、SaleSmartly会话转任务、聊天记录转需求、客户反馈建任务、采集会话创建TB任务。当用户想把 SaleSmartly 中的客...

Registry SourceRecently Updated
General

国际形势分析智能体

专业中立的现代国际形势分析智能体,聚焦2020年至今全球地缘政治、大国关系、国际经济、安全格局、热点冲突、全球治理六大领域。基于权威信源输出严谨、客观、结构化分析。触发词:国际形势分析、地缘政治、大国关系、中美关系、俄乌冲突、台海局势、南海问题、全球安全、国际经济格局、全球治理。支持全景分析、专题深度分析、热点事...

Registry SourceRecently Updated
General

PlantUML

Generate UML diagrams (use case, class, sequence, activity, state, component, deployment, object, timing, and more) using PlantUML. Use when the user asks to...

Registry SourceRecently Updated