simple-backup
Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- simple-backup
- metadata
- { "openclaw": { "emoji": "?", "requires": { "bins": [ "rclone", "gpg", "tar", "jq" ] } } }
- description
- Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.
02 资源文件 3
- 参考文档_meta.json808 B
- 参考文档package.json371 B
- 脚本simple-backup.sh5.6 KB
03 SKILL.md 正文
Simple Backup
A robust backup script that:
- Auto-detects workspace and state directories from OpenClaw config
- Allows overrides for custom/non-standard setups
- Compresses & encrypts using GPG (AES256)
- Prunes old backups (Daily/Hourly retention)
- Syncs to cloud via
rclone(optional)
Setup
-
Dependencies:
brew install rclone gnupg jq -
Password: Set encryption password (choose one):
- File:
~/.openclaw/credentials/backup.key(recommended) - Env:
export BACKUP_PASSWORD="secret" - Config: Add
"password": "secret"to skill config
- File:
-
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 Key | Env Var | Auto-Detected | Description |
|---|---|---|---|
workspaceDir |
BRAIN_DIR |
agents.defaults.workspace |
Agent workspace |
stateDir |
BODY_DIR |
~/.openclaw |
OpenClaw state dir |
skillsDir |
SKILLS_DIR |
~/openclaw/skills |
Skills directory |
backupRoot |
BACKUP_ROOT |
<workspace>/BACKUPS |
Local backup storage |
remoteDest |
REMOTE_DEST |
(none) | Rclone remote path |
maxDays |
MAX_DAYS |
7 | Days to keep daily backups |
hourlyRetentionHours |
HOURLY_RETENTION_HOURS |
24 | Hours to keep hourly |
password |
BACKUP_PASSWORD |
(none) | Encryption password |
Priority: Config file → Env var → Auto-detect
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.