OpenClaw Backup for Openclaw

A comprehensive backup and recovery utility designed to secure critical OpenClaw workspace configurations and long-term memory.

hhse
v1.0.1
Mar 10, 2026
0
928
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-backupgg

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-backupgg using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenClaw Backup?

OpenClaw Backup is a robust utility designed to provide peace of mind for developers and users of AI agents. It simplifies the process of safeguarding your entire environment by packaging essential files—including long-term memory, identity definitions, and installed skills—into a portable ZIP format. This tool ensures that your agent's personality and historical data remain intact, even across system migrations or accidental data loss.

Built as a core component of the Openclaw Skills ecosystem, this backup solution emphasizes flexibility. Users can perform surgical backups of mandatory system files or choose to include optional directories like knowledge bases and logs. With built-in SHA256 checksum generation and secure restoration workflows, it serves as the ultimate insurance policy for your AI's digital soul.

OpenClaw Backup Use Cases

  • Migrating an OpenClaw workspace to a new machine or server.
  • Creating periodic snapshots of AI memory and personality traits before major updates.
  • Exporting specific agent configurations and toolsets for version control.
  • Disaster recovery after accidental file corruption or workspace deletion.
  • Archiving historical task logs and knowledge base states for long-term storage.

How OpenClaw Backup Works

  1. The user triggers the backup process via specific keywords or direct CLI command execution.
  2. The system scans the workspace to identify mandatory core files such as MEMORY.md, SOUL.md, and the skills directory.
  3. Based on user input, optional components like documentation and logs are included in the archive list.
  4. A timestamped ZIP archive is generated (e.g., openclaw-backup-YYYYMMDD-HHMMSS.zip) along with a manifest file.
  5. The tool calculates SHA256 checksums to ensure file integrity and alerts the user to the backup location.
  6. For recovery, the restore script validates the ZIP contents and safely extracts them back into the workspace path.

OpenClaw Backup Setup

To install and configure the backup skill within your workspace, use the following commands:

# Standard interactive backup (allows selection of optional content)
python3 ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.py

# Quick backup of mandatory system files only
python3 ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.py --required-only

# Backup to a custom external directory
python3 ~/.openclaw/workspace/skills/openclaw-backup/scripts/backup.py --output ~/Desktop/openclaw-backup

OpenClaw Backup Data Schema & Taxonomy

OpenClaw Backup organizes data into two distinct tiers to balance speed and completeness:

Data Category Included Files/Directories Description
Mandatory MEMORY.md, memory/, skills/, SOUL.md, IDENTITY.md, USER.md, AGENTS.md, TOOLS.md, HEARTBEAT.md Core identity, memory, and functional Openclaw Skills configuration.
Optional docs/, logs/, tasks/, knowledge/, .openclaw/config.json Extended data including logs, task history, and local knowledge bases.
Metadata BACKUP_MANIFEST.txt A detailed manifest of included files and their versions.

OpenClaw Backup Advanced Features

  • Support for --required-only flag to streamline automated cron-job backups.
  • Custom output path redirection for cloud storage or external drive synchronization.
  • SHA256 verification to prevent data corruption during the compression or transfer process.
  • Secure restoration engine with ZipSlip protection to prevent directory traversal attacks.
  • Automated timestamping for easy historical version management of Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*