← 返回
未分类 中文

OpenClaw Backup

Backup OpenClaw workspace, config, and state using the built-in `openclaw backup create` command. Also handles cleanup of old backups and health verification...
使用内置的 `openclaw backup create` 命令备份OpenClaw 工作区、配置和状态,同时处理旧备份的清理和健康检查。
joeyiptk
未分类 clawhub v1.0.0 1 版本 99642.9 Key: 无需
★ 0
Stars
📥 279
下载
💾 0
安装
1
版本
#archive#automation#backup#cron#daily-backup#latest#openclaw

概述

openclaw-backup

> See CHANGELOG.md for version history.

Automated daily backup skill using OpenClaw's built-in backup create command.

Backup Destination

~/openclaw_backups/ — timestamped .tar.gz archives.

Quick Commands

# Run backup now
python3 scripts/backup.py

# Run backup with verification
python3 scripts/backup.py --verify

# Verify latest backup
python3 scripts/health_check.py

# Cleanup old backups (dry-run, then --execute to delete)
python3 scripts/cleanup_old_backups.py --days 90
python3 scripts/cleanup_old_backups.py --days 90 --execute

# Setup daily cron at 4 AM
python3 scripts/setup_cron.py

First-Time Setup on New Machine

  1. Test backup:

```bash

cd skills/openclaw-backup

python3 scripts/backup.py --verify

```

  1. Verify health:

```bash

python3 scripts/health_check.py

```

  1. Setup cron (important — do this!):

```bash

python3 scripts/setup_cron.py

```

This schedules daily 4 AM HKT backup via OpenClaw cron.

Without this, backups only run when you manually trigger them.

  1. Verify cron:

```bash

openclaw cron list

```

Cron Setup (Already Configured)

The daily cron job runs automatically at 04:00 HKT.

Trigger message: backup openclaw

Session: isolated

Manage cron:

# List
openclaw cron list

# Remove
openclaw cron remove openclaw-backup:daily

# Re-add
python3 scripts/setup_cron.py

What Gets Backed Up

  • Config files (~/.openclaw/*.json)
  • Credentials (encrypted by OpenClaw)
  • Session history
  • Workspace files
  • Skills and settings

Retention

Backups are kept indefinitely by default. Run cleanup periodically:

# Preview old backups
python3 scripts/cleanup_old_backups.py --days 90

# Delete if looks good
python3 scripts/cleanup_old_backups.py --days 90 --execute

Suggested schedule: quarterly.

Portable — Copy to New Machine

Copy the entire openclaw-backup/ skill folder to a new machine, then:

cd skills/openclaw-backup
python3 scripts/backup.py --verify    # test
python3 scripts/setup_cron.py          # schedule daily
python3 scripts/health_check.py        # verify

No extra dependencies — uses OpenClaw's built-in backup create.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 02:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

LLM Cost Tracker

joeyiptk
追踪 OpenClaw LLM 通过 OpenRouter API 的 token 使用量和费用,提供过去 24 小时、7 天、30 天、90天、365 天的报告,并按模型细分。触发关键词包括:“llm cos”。
★ 0 📥 480

knowledge-advisor

joeyiptk
知识顾问,从书籍和学习资料中提取、组织知识并运用于实际情境,充当持续顾问。
★ 0 📥 355

modern-portfolio-theory

joeyiptk
现代投资组合理论优化器 — 构建、回测并管理多元化投资组合
★ 0 📥 261