openclaw-backup

Backup and restore OpenClaw data with compressed tar.gz archives.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/wjlmrzd/OpenClaw-Wren --skill openclaw-backup-wjlmrzd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-backup
Source: https://github.com/wjlmrzd/OpenClaw-Wren/tree/main/skills/openclaw-backup
Command: npx skills add https://github.com/wjlmrzd/OpenClaw-Wren --skill openclaw-backup-wjlmrzd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides reliable backup and restore procedures for OpenClaw data and configuration, removing the risk of data loss from accidental changes, crashes, or migrations.

Core Features & Use Cases

  • Automated backups: A shell script creates timestamped compressed archives of the ~/.openclaw directory with sensible exclusions.
  • Rotation and reporting: Keeps the last seven backups, reports archive size and count, and safely removes older snapshots.
  • Restore and scheduling: Clear restore steps and a cron-ready payload example let you schedule daily backups and recover gateways after failures.
  • Use Case: Schedule nightly backups of agent configs, credentials, and workspace so you can quickly restore a gateway after a faulty update.

Quick Start

Run the scripts/backup.sh script to create a timestamped openclaw-YYYY-MM-DD_HHMM.tar.gz archive in your backup directory and rotate older snapshots.

Frequently Asked Questions about openclaw-backup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backup the ~/.openclaw directory automatically using a shell script?

To backup the ~/.openclaw directory automatically, run the provided shell script to create a timestamped compressed tar.gz archive, excluding caches and logs, then schedule it via cron for daily periodic execution.

What is the best way to schedule periodic OpenClaw backups and rotate older snapshots?

The best way to schedule periodic OpenClaw backups is using a cron job payload that triggers the backup script nightly, automatically rotating to keep the last seven snapshots and safely removing older archives.

How do I restore OpenClaw gateway and workspace files after a system crash?

To restore OpenClaw gateway and workspace files after a crash, follow the exposed safe restore steps in the shell script to recover your data and configuration from the latest compressed tar.gz backup archive.

Does the OpenClaw backup script exclude cache and log files when creating tar.gz archives?

Yes, the OpenClaw backup script applies sensible exclusions for caches and logs when creating compressed tar.gz archives, ensuring only essential agent configs, credentials, and workspace files are included.

Can I use cron to schedule daily OpenClaw data and configuration backups?

Yes, you can use cron to schedule daily OpenClaw data and configuration backups by deploying the cron-ready payload example included in the script, automating gateway recovery after faulty updates.

What happens to older OpenClaw backups when the seven snapshot rotation limit is reached?

When the seven snapshot rotation limit is reached, the backup script safely removes older OpenClaw archives, reports the current archive size and count, and retains only the last seven timestamped backups.