simple-backup

Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.

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 "simple-backup" with this command: npx skills add vacinc/simple-backup

Simple Backup

A robust backup script that:

  1. Auto-detects workspace and state directories from OpenClaw config
  2. Allows overrides for custom/non-standard setups
  3. Compresses & encrypts using GPG (AES256)
  4. Prunes old backups (Daily/Hourly retention)
  5. Syncs to cloud via rclone (optional)

Setup

  1. Dependencies:

    brew install rclone gnupg jq
    
  2. Password: Set encryption password (choose one):

    • File: ~/.openclaw/credentials/backup.key (recommended)
    • Env: export BACKUP_PASSWORD="secret"
    • Config: Add "password": "secret" to skill config
  3. Cloud (Optional):

    rclone config
    

Usage

simple-backup

Auto-Detection

By default, paths are auto-detected from ~/.openclaw/openclaw.json:

  • Workspace: agents.defaults.workspace
  • State: ~/.openclaw (where config lives)
  • Backup root: <workspace>/BACKUPS

Custom Configuration

For non-standard setups, override any path in ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "simple-backup": {
        "config": {
          "workspaceDir": "/custom/path/workspace",
          "stateDir": "/custom/path/state",
          "skillsDir": "/custom/path/skills",
          "backupRoot": "/custom/path/backups",
          "remoteDest": "gdrive:backups"
        }
      }
    }
  }
}

Configuration Reference

Config KeyEnv VarAuto-DetectedDescription
workspaceDirBRAIN_DIRagents.defaults.workspaceAgent workspace
stateDirBODY_DIR~/.openclawOpenClaw state dir
skillsDirSKILLS_DIR~/openclaw/skillsSkills directory
backupRootBACKUP_ROOT<workspace>/BACKUPSLocal backup storage
remoteDestREMOTE_DEST(none)Rclone remote path
maxDaysMAX_DAYS7Days to keep daily backups
hourlyRetentionHoursHOURLY_RETENTION_HOURS24Hours to keep hourly
passwordBACKUP_PASSWORD(none)Encryption password

Priority: Config file → Env var → Auto-detect

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

Notion Workflow Automator

Automate Notion workflows — create databases, templates, pages, and integrations using the Notion API with AI-powered content generation and organization.

Registry SourceRecently Updated
Automation

Google Ads Agent — PMax & Search Operations

Manage and optimize Google Ads Search and Performance Max campaigns using AI-driven strategies, asset optimization, audience signals, and conversion tracking...

Registry SourceRecently Updated
Automation

Bulletin Tools

Multi-agent bulletin board — post bulletins, subscribe agents, run structured discussion and critique rounds, and resolve decisions asynchronously across Ope...

Registry SourceRecently Updated
Automation

Abdullahi AI Agent

Billions decentralized identity for agents. Link agents to human identities using Billions ERC-8004 and Attestation Registries. Verify and generate authentic...

Registry SourceRecently Updated