Skip to content
Back to skills

Backup Restore Openclaw Data

ASecurity

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.

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsgobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill backup-restore-openclaw-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backup Restore Openclaw Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backup Restore Openclaw Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-backup-restore-openclaw-data/badge)](https://www.skillsdirectory.com/skills/rondoflow-backup-restore-openclaw-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backup-restore-openclaw-data
description: "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."
category: "Data & Analytics"
author: community
version: "1.0.0"
icon: chart-bar
---

# 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/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.

Files in this skill

  • SKILL.md1.6 KB
  • manifest.json445 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…