TopRank Skills

Home / Claw Skills / API Integration / openclaw-backup
Official OpenClaw rules 36%

openclaw-backup

Backup and restore OpenClaw data. Use when user asks to create backups, set up automatic backup schedules, restore from backup, or manage backup rotation. Handles ~/.openclaw directory archiving with proper exclusions.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 openclaw-backup 技能。 若已安装,则直接安装 openclaw-backup 技能。

Overview

Skill Key
alessandropcostabr/openclaw-backup-safe
Author
alessandropcostabr
Source Repo
openclaw/skills
Version
-
Source Path
skills/alessandropcostabr/openclaw-backup-safe
Latest Commit SHA
fb8e1f33c68981da6cfcd550b01e5837385fbcc8

Extracted Content

SKILL.md excerpt

# OpenClaw Backup

Backup and restore OpenClaw configuration, credentials, and workspace.

## Create Backup

Run the backup script:

```bash
./scripts/backup.sh [backup_dir]
```

Default backup location: `~/openclaw-backups/`

Output: `openclaw-YYYY-MM-DD_HHMM.tar.gz`

## What Gets Backed Up

- `openclaw.json` - main config
- `credentials/` - API keys, tokens
- `agents/` - agent configs, auth profiles
- `workspace/` - memory, SOUL.md, user files
- `telegram/` - session data
- `cron/` - scheduled tasks

## Excluded

- `completions/` - cache, regenerated automatically
- `*.log` - logs

## Setup Daily Backup with Cron

Use OpenClaw cron for daily backups with notification:

```json
{
  "name": "daily-backup",
  "schedule": {"kind": "cron", "expr": "0 3 * * *", "tz": "UTC"},
  "payload": {
    "kind": "agentTurn",
    "message": "Run ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.sh and report result to user."
  },
  "sessionTarget": "isolated",
  "delivery": {"mode": "announce"}
}
```

## Restore

See [references/restore.md](references/restore.md) for step-by-step restore instructions.

Quick restore:

```bash
openclaw gateway stop
mv ~/.openclaw ~/.openclaw-old
tar -xzf ~/openclaw-backups/openclaw-YYYY-MM-DD_HHMM.tar.gz -C ~
openclaw gateway start
```

## Rotation

Script keeps last 7 backups automatically.

Related Claw Skills