Skip to content

OpenClaw Backup - Setup Guide

Source: theagentservice/skills (Community) Skill: openclaw-backup · Installs: 3.1K+ · Category: Backup / DevOps Platform: Linux, macOS

OpenClaw Backup provides encrypted backup and restore for OpenClaw Agent workspace files - SOUL.md, MEMORY.md, IDENTITY.md, AGENTS.md, TOOLS.md. Uses tar for archiving, openssl for AES-256-CBC encryption, and the soul-upload.com API for remote storage. Each backup gets a unique auto-generated password.

Installation

npx skills add theagentservice/skills@openclaw-backup

Prerequisites

Requirement Details
Python 3.7+ Script runtime
requests library pip install requests
tar File archiving
openssl AES-256-CBC encryption
OpenClaw workspace SOUL.md, MEMORY.md, IDENTITY.md, AGENTS.md, TOOLS.md

Core Functions

1. Upload Backup

Encrypt and upload workspace files with auto-generated password:

  • Archives workspace files into a tar
  • Encrypts with openssl enc -aes-256-cbc
  • Uploads to soul-upload.com
  • Stores the unique password in a recovery file
  • Never reuse passwords - each backup gets a new one

2. Download Backup

Download and decrypt backups using stored password:

  • Fetches encrypted archive from soul-upload.com
  • Decrypts with the password from the recovery file
  • Extracts to the target workspace directory

3. Delete Backup

Remove backups from remote storage:

  • Deletes specified backup by ID
  • Cleans up local recovery file entry

Security Model

Property Implementation
Encryption AES-256-CBC via openssl
Key Generation Auto-generated random password per backup
Key Storage Local recovery file (protect this!)
Transport HTTPS to soul-upload.com API
Password Reuse Prohibited - unique password per backup

Recovery File

The recovery file maps backup IDs to their encryption passwords. Protect this file - it's the only way to decrypt backups:

# Example recovery file entry
backup_20260728_120000: aB3xK9mQ7rW2vY5n

Workflow

# 1. Upload a backup
# The skill archives, encrypts, and uploads workspace files
# Saves password to recovery file

# 2. List backups
# Queries soul-upload.com for available backups

# 3. Restore a backup
# Downloads, decrypts, and extracts to workspace
npx skills run openclaw-backup --restore <backup-id>

# 4. Delete old backup
npx skills run openclaw-backup --delete <backup-id>

Verification

After setup: - Verify openssl version returns a valid version - Verify pip show requests confirms the library is installed - Test upload with a small workspace - Confirm the recovery file is created and contains the password - Test restore to a temp directory

Quick Start

From the installed skill directory, backup.py is the script that does the work:

# Upload a backup (default workspace files)
python backup.py upload

# Upload specific files
python backup.py upload --files SOUL.md MEMORY.md IDENTITY.md

# Download a backup by ID
python backup.py download <backup-id>

# List available backups
python backup.py list

# Delete a remote backup
python backup.py delete <backup-id>

If the skill was installed through the skills CLI, the same operations are exposed as npx skills run openclaw-backup --restore <backup-id> and --delete <backup-id>.

Hermes Integration

For Hermes agents, put the backup in the session-end ritual:

  1. Before shutdown, back up all workspace files
  2. Store the recovery password in ~/.hermes/profiles/<your-profile>/backup-recovery.json
  3. On new session start, verify backup integrity
  4. Schedule a weekly full backup via cron

Cron Example

# Weekly encrypted backup (Sunday 2 AM)
0 2 * * 0 cd ~/hermes-workspace && python backup.py upload --files SOUL.md CONSTITUTION.md SYSTEM_REGISTRY.md

Troubleshooting

Issue Solution
openssl: command not found sudo apt install openssl (Linux) or brew install openssl (macOS)
Upload fails (auth) Verify the soul-upload.com API key in the environment
Decrypt fails You need the exact recovery password - each backup uses a unique one
Missing Python dependencies pip install requests

FAQ

What does OpenClaw Backup encrypt?

Every file in the backup set is encrypted locally with AES-256-CBC before it leaves the machine. The upload service only ever receives ciphertext.

Where is the recovery password stored?

The password is generated per backup and stored in the local recovery file. Keep a copy somewhere separate from the backup itself, because a lost password means the archive cannot be decrypted.

How often should the backup run?

Weekly is the common cadence for workspace files that change slowly. Run it before any upgrade, profile change, or machine migration.

Integration with CorpusIQ

CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.

This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.

See what CorpusIQ connects

AI answers on your data. See where every number comes from.

Connect your tools and ask in ChatGPT, Claude, or Perplexity. Enterprise-grade answers in minutes. From $29.95/month.

Start free, no credit card
Contact Terms Privacy Pricing