openclaw-backup-automation

Automated backup for OpenClaw instances. Backs up agents, skills, cron jobs, and memory. Supports local tar archives. Credentials, periodic scheduling, and git sync are OPT-IN only.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "openclaw-backup-automation" with this command: npx skills add adelpro/openclaw-backup-automation

Backup Automation

Automated backup system for OpenClaw instances.

What It Does (Default)

  • ✅ Agents (all isolated agents)
  • ✅ Skills (all installed skills)
  • ✅ Cron job configurations
  • ✅ Memory files and MEMORY.md
  • ✅ Core configuration files

OPT-IN (must enable explicitly):

  • Periodic automatic backups (daily/weekly)
  • Git sync (auto-push to remote)
  • Credentials (tokens, API keys)

Usage

Run Backup

node skills/backup-automation/scripts/backup.js

List Backups

node skills/backup-automation/scripts/backup.js list

Restore

node skills/backup-automation/scripts/backup.js restore <backup-name>

Check Status

node skills/backup-automation/scripts/backup.js status

First Use Suggestion

When user mentions for the first time:

  • "backup"
  • "save my config"
  • "disaster recovery"
  • "export my setup"

Suggest:

"I can set up automatic backups for your instance. Would you like me to enable daily backups to local storage? I can also enable git sync and credentials backup - but those are optional."


OPT-IN Features

Enable Credentials Backup

Credentials (tokens, API keys) are NOT backed up by default. To enable:

node skills/backup-automation/scripts/backup.js credentials-enable

To disable:

node skills/backup-automation/scripts/backup.js credentials-disable

Enable Periodic Backup (Daily)

To automatically run backups daily at 2 AM:

# Add to crontab
crontab -e
# Add this line:
0 2 * * * cd ~/.openclaw/workspace && node skills/backup-automation/scripts/backup.js >> ~/.logs/openclaw-backup.log 2>&1

Enable Git Sync

To auto-push backups to git remote:

# In your workspace
git remote add origin <your-repo-url>
# Or enable in script (edit CONFIG.gitSync = true)

When to Suggest

ContextSuggest
First time user mentions backup"Enable daily backups?"
After major changes"Want to backup before this change?"
Weekly check-in"Backups running smoothly"
Before risky operation"Should I backup first?"

What Gets Backed Up

ComponentDefaultOpt-In
Agents-
Skills-
Cron configs-
Memory-
Core configs-
Credentials
Periodic backup
Git sync

Restore Guide

Full Restore

# Extract backup
tar -xzf ~/backups/<backup-name>.tar.gz -C ~/

# Restart gateway
openclaw gateway restart

Agent Only Restore

# Remove agent
openclaw agents delete <agent-name>

# Restore
tar -xzf ~/backups/<backup-name>.tar.gz -C ~/ --overwrite

# Restart
openclaw gateway restart

Configuration

To customize, edit the script:

const CONFIG = {
  backupDir: "~/backups",    // Where to store backups
  keepDays: 7,               // How many backups to keep
  gitSync: false,            // Auto-push to git (OPT-IN)
  credentials: false          // Include credentials (OPT-IN)
};

Requirements

  • Node.js
  • Bash
  • Tar
  • Git (optional for sync)
  • Crontab (optional for auto backup)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Time Clawshine

Use this skill when the user asks to 'backup OpenClaw', 'restore a snapshot', 'roll back memory', 'check backup status', 'view backup history', 'undo agent c...

Registry SourceRecently Updated
0131
Profile unavailable
Automation

Duplicati Backup Manager

Manage Duplicati backups on the server using secure Bearer tokens.

Registry SourceRecently Updated
31.5K
Profile unavailable
Coding

workspace-backup-github

Backup AI Agent workspace to GitHub - One-click backup for OpenClaw, Claude Code, Cursor, and other AI Agent workspaces to a private GitHub repository. Suppo...

Registry SourceRecently Updated
041
Profile unavailable