Self-Backup Skill for Openclaw

An automated data protection utility for Openclaw Skills that secures agent memory, identity files, and workspace databases across multiple cloud and local targets.

webdevtodayjason
v1.0.1
Feb 4, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-self-backup

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-self-backup 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 Self-Backup Skill?

The Self-Backup skill provides a mission-critical safety net for AI agents by automating the preservation of their workspace and internal state. It specifically targets the most vital components of an agent's existence, including long-term memory files, personality definitions in SOUL.md, and persistent SQLite databases. By integrating this into your ecosystem of Openclaw Skills, you ensure that agents can recover from system failures, migrate to new environments without losing their history, and maintain a verifiable record of their cognitive evolution.

Self-Backup Skill Use Cases

  • Creating automated daily snapshots of agent memory and personality files to prevent data loss.
  • Synchronizing agent workspace states across distributed environments using Git repositories or S3 buckets.
  • Implementing a historical 'time-travel' archive to audit how an agent's identity and memory have changed over months.
  • Securing persistent SQLite databases using integrity-safe backup procedures to ensure no data corruption during active writes.

How Self-Backup Skill Works

  1. The skill initializes by reading the backup.json configuration to determine which files to include and which storage targets are enabled.
  2. When triggered manually or via a schedule, it executes a backup script that handles standard files and performs a specialized SQLite backup command for active databases.
  3. The data is then compressed and transferred to configured destinations such as local directories, Git, Amazon S3, or Cloudflare R2.
  4. Finally, the skill applies a retention policy, automatically deleting expired backups (daily, weekly, or monthly) to manage storage efficiency.

Self-Backup Skill Setup

# Install via ClawHub
clawhub install self-backup

# Navigate to the skill directory and initialize configuration
cd skills/self-backup
cp config/backup.example.json config/backup.json

# Edit the configuration to set your preferred backup targets
nano config/backup.json

# Run your first manual backup
./scripts/backup.sh

Self-Backup Skill Data Schema & Taxonomy

The Self-Backup skill organizes information into timestamped archives with a clear separation between flat files and relational data.

Component Organization Description
Workspace Files Root Directory Contains copies of MEMORY.md, SOUL.md, and custom scripts.
Databases .databases/ Dedicated folder for SQLite memory.db files using safe backup protocols.
Metadata .last-backup A JSON file recording the timestamp and status of the most recent operation.
Retention Config-driven Automated cleanup logic based on daily (7), weekly (4), and monthly (12) settings.

Self-Backup Skill Advanced Features

  • Multi-cloud support for Amazon S3 and Cloudflare R2 (S3-compatible) with zero egress fee options.
  • Automated Git integration that commits and pushes workspace changes to remote repositories.
  • GPG encryption support to secure sensitive agent identity files and credentials before they leave the local environment.
  • Heartbeat and Cron integration allowing agents to autonomously monitor their own backup status and trigger runs when needed.
  • Flexible selective restore capabilities, allowing users to recover individual files or entire workspace snapshots via a CLI menu.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*