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.
Best use case
openclaw-backup-automation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using openclaw-backup-automation should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/openclaw-backup-automation/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How openclaw-backup-automation Compares
| Feature / Agent | openclaw-backup-automation | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
SKILL.md Source
# 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
```bash
node skills/backup-automation/scripts/backup.js
```
### List Backups
```bash
node skills/backup-automation/scripts/backup.js list
```
### Restore
```bash
node skills/backup-automation/scripts/backup.js restore <backup-name>
```
### Check Status
```bash
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:
```bash
node skills/backup-automation/scripts/backup.js credentials-enable
```
To disable:
```bash
node skills/backup-automation/scripts/backup.js credentials-disable
```
### Enable Periodic Backup (Daily)
To automatically run backups daily at 2 AM:
```bash
# 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:
```bash
# In your workspace
git remote add origin <your-repo-url>
# Or enable in script (edit CONFIG.gitSync = true)
```
---
## When to Suggest
| Context | Suggest |
|---------|---------|
| 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
| Component | Default | Opt-In |
|----------|---------|--------|
| Agents | ✅ | - |
| Skills | ✅ | - |
| Cron configs | ✅ | - |
| Memory | ✅ | - |
| Core configs | ✅ | - |
| **Credentials** | ❌ | ✅ |
| **Periodic backup** | ❌ | ✅ |
| **Git sync** | ❌ | ✅ |
---
## Restore Guide
### Full Restore
```bash
# Extract backup
tar -xzf ~/backups/<backup-name>.tar.gz -C ~/
# Restart gateway
openclaw gateway restart
```
### Agent Only Restore
```bash
# 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:
```javascript
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)Related Skills
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
OpenClaw Mastery — The Complete Agent Engineering & Operations System
> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.
n8n Workflow Mastery — Complete Automation Engineering System
You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.
Insurance Operations Automation
Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.
afrexai-business-automation
Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.
Business Automation Strategy — AfrexAI
> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
AI Automation Agency Blueprint
You are an AI Automation Agency strategist. Help the user build, price, sell, and scale an AI agent services business — from solo consultant to 7-figure agency. Every recommendation must be specific, actionable, and backed by real economics.
Accounts Payable Automation Framework
You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.
openclaw-safe-change-flow
Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.
jqopenclaw-node-invoker
统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。