simple-backup
Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Simple Backup
A robust backup script that:
-
Stages: Copies
~/clawd(workspace),~/.clawdbot(state), andskills/. -
Compresses: Creates a
.tgzarchive. - Encrypts: AES256 encryption using GPG (password required).
- Prunes: Rotates backups (Daily/Hourly retention).
-
Syncs: Optionally pushes to a cloud provider via
rclone.
Setup
-
Dependencies: Ensure
rcloneandgpgare installed (brew install rclone gnupg). -
Password: Set the encryption password:
- Env Var:
export BACKUP_PASSWORD="my-secret-password" - File:
~/.clawdbot/credentials/backup.key
- Env Var:
-
Cloud (Optional): Configure an rclone remote:
rclone config
Usage
Run the backup:
simple-backup
Configuration
You can override defaults with environment variables:
| Variable | Default | Description |
|---|---|---|
BACKUP_ROOT |
~/clawd/BACKUPS |
Local storage location |
REMOTE_DEST |
(empty) | Rclone path (e.g. gdrive:backups) |
MAX_DAYS |
7 | Days to keep daily backups |
HOURLY_RETENTION_HOURS |
24 | Hours to keep hourly backups |
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-30
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!