Backup Automation Skill for Openclaw

An automated multi-layer backup system for OpenClaw workspaces utilizing SQLite, NAS, and GitHub.

lancelot3777-svg
v1.0.0
Feb 23, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-backup-guide

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-backup-guide 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 Backup Automation Skill?

This skill provides a robust framework for maintaining workspace continuity through automated, multi-destination backups. By integrating database exports, network-attached storage (NAS) synchronization, and Git version control, it ensures that your AI agent's work environment is protected against data loss and is easily recoverable. Leveraging Openclaw Skills for automation allows developers to focus on building without worrying about manual state persistence. The system is designed to be lightweight, using industry-standard tools like rsync and Node.js to create a reliable safety net for your development data.

Backup Automation Skill Use Cases

  • Automated hourly disaster recovery for active development workspaces.
  • Synchronizing local workspace state to a secure remote NAS for long-term storage.
  • Maintaining a granular version history of database changes and configurations using GitHub.
  • Ensuring high availability of agent workflows across different machines and environments.

How Backup Automation Skill Works

  1. The backup process triggers automatically via a system cron job or the internal scheduler provided by Openclaw Skills.
  2. A Node.js script executes to export the current workspace state into a local SQLite database file.
  3. A bash script runs rsync to mirror the workspace files and the new database snapshot to a designated NAS mount point.
  4. The Git client stages all modified files, creates a timestamped commit message, and pushes the updates to a remote GitHub repository for off-site redundancy.

Backup Automation Skill Setup

1. NAS Configuration

Edit backup-nas.sh to define your local NAS target path:

NAS_PATH="/path/to/your/nas/backup"

2. Automation Setup

Add an hourly task using the CLI from Openclaw Skills:

openclaw cron add --schedule "0 * * * *" --task "Hourly workspace backup" --command "cd /path/to/workspace && node scripts/backup-db.js && bash scripts/backup-nas.sh && git add -A && git commit -m 'Auto backup' && git push"

3. Git Credentials

Ensure your GitHub SSH keys are configured and your remote origin is properly set by running git remote -v.

Backup Automation Skill Data Schema & Taxonomy

File/Component Description Format
workspace.db Primary database backup containing agent state and data. SQLite
backup-nas.sh Orchestration script for rsync-based network storage sync. Bash
backup-db.js Logic for database extraction and JSON to SQL formatting. Node.js
Git History Versioned snapshots of the entire workspace directory and code. Git/GitHub

Backup Automation Skill Advanced Features

  • Customizable backup frequency using standard cron syntax within Openclaw Skills task management.
  • Extensible backup logic that allows developers to add S3 buckets or other cloud storage providers to the workflow.
  • Automated history management strategies, such as squashing old commits to keep repository sizes optimized.
  • Fail-safe error handling that skips specific steps like NAS synchronization if the hardware is not mounted, without breaking the overall workflow.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*