← 返回
未分类 中文

Bud Backup Tool

Backup and restore OpenClaw configuration, skills, memory, and workspace files. Essential for protecting your agent setup and enabling recovery after crashes...
备份并恢复OpenClaw配置、技能、记忆和工作区文件。 用于保护代理设置并在崩溃后快速恢复。
stigg86
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 100
下载
💾 0
安装
1
版本
#latest

概述

Backup Tool 📦

Backup and restore your OpenClaw setup. Protect your skills, memory, identity, credentials, and workspace. One command to backup everything, easy restore when needed.


Quick Start

# Check what will be backed up
python3 ~/.openclaw/backup-tool/backup_tool.py status

# Create backup
python3 ~/.openclaw/backup-tool/backup_tool.py backup

# Push backup to GitHub (requires repo setup)
python3 ~/.openclaw/backup-tool/backup_tool.py backup --push

What Gets Backed Up

ItemPathDescription
-------------------------
skills~/.openclaw/skills/All installed skills
workspace~/.openclaw/workspace/Memory, identity, config
memory~/.openclaw/workspace/memory/Daily memory files
identity~/.openclaw/identity/Agent identity
credentials~/.openclaw/credentials/API keys, tokens
vpn_mesh~/.openclaw/vpn-mesh/VPN mesh config
health_monitor~/.openclaw/health-monitor/Health monitor config

Commands

status — Show backup status

Shows what files would be backed up, existing backups, and total backup size.

backup — Create backup

Creates a timestamped .tar.gz archive in ~/.openclaw/backups/.

Add --push to automatically push to GitHub.

list — List backups

Shows all available local backups with timestamps and sizes.

restore — Restore from backup

Restore specific items from a backup tarball:

python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_20240604.tar.gz

push — Push to GitHub

Push the latest backup to a GitHub repository for off-site storage.


GitHub Setup (Optional)

For cloud backups, create a GitHub repo called openclaw-backup:

  1. Go to https://github.com/new
  2. Name: openclaw-backup
  3. Description: "OpenClaw agent backup repository"
  4. Keep it private (contains credentials!)
  5. Add your GitHub token to the skill or use sudo-tool

The backup tool will clone/push to this repo automatically.


Recovery Scenarios

New installation

# After fresh OpenClaw install
python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_latest.tar.gz

Recovery after crash

# List backups
python3 ~/.openclaw/backup-tool/backup_tool.py list

# Restore everything
python3 ~/.openclaw/backup-tool/backup_tool.py restore openclaw_backup_20240604.tar.gz

Move to new machine

# On new machine, install OpenClaw
# Then restore from GitHub
python3 ~/.openclaw/backup-tool/backup_tool.py push  # or pull from GitHub

Automation

Add to cron for automatic daily backups:

# Daily backup at 3am
0 3 * * * python3 ~/.openclaw/backup-tool/backup_tool.py backup --push >> ~/.openclaw/backup-tool/backup.log 2>&1

Files

~/.openclaw/backup-tool/
├── backup_tool.py   # Main script
├── backup.log        # Backup log
└── config.json       # Configuration (optional)

~/.openclaw/backups/
└── openclaw_backup_YYYYMMDD_HHMM.tar.gz

Security Notes

  • Credentials directory contains sensitive API keys — keep backups private
  • GitHub repo should be private if storing credentials
  • Backup files are stored locally with chmod 755 restrictions
  • Restore operation overwrites existing files (careful!)

Required By

  • All skills — protects your entire OpenClaw setup
  • Disaster recovery — recover from crashes, new SD cards, or moves
  • Migration — move setup to new Raspberry Pi

Dependencies

  • sudo-tool — for secure file operations
  • tar, gzip — for archive creation
  • git — for GitHub push (optional)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-06 07:16 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

Betting Research

stigg86
多源体育博彩研究工具,聚合赔率、球队状态、往绩交锋、天气情况和伤病数据,以发现价值投注机会。
★ 0 📥 372

Bud Semantic Memory

stigg86
针对OpenClaw记忆的基于向量语义搜索。索引记忆文件,实现基于含义而非关键词匹配的搜索。使用ChromaDB进行本...
★ 0 📥 139

Bud Sudo Tool

stigg86
存储并使用 sudo 密码执行自动化 root 命令,是需要 sudo 访问的技能(如 vpn‑mesh)的必备伴侣。
★ 1 📥 123