cloud-backup
by obuchowski
Web & Frontend DevelopmentBrief
Back up and restore OpenClaw state.
Description
What This Skill Does
Backs up OpenClaw state to local archives and uploads them to S3-compatible cloud storage. Supports AWS S3, Cloudflare R2, Backblaze B2, MinIO, and DigitalOcean Spaces. Handles optional GPG encryption and automatic daily scheduling.
Combines local archiving, cloud upload, GPG encryption, and scheduled rotation in one workflow instead of requiring separate tools for each step.
When to Use It
- Daily automated backup of OpenClaw config and credentials
- Restoring OpenClaw state after a machine wipe or migration
- Encrypting backup archives before uploading to third-party storage
- Pruning old backups across local and cloud storage by count and age
- Verifying cloud storage connectivity before a first backup
Example Workflow
User asks: "Back up my OpenClaw state to S3"
- 1
Runs the backup script in full mode to create a local archive
- 2
Checks output for an encryption warning and prompts the user to set a passphrase if encryption is off
- 3
Detects that cloud storage is not configured and asks the user to pick a provider
- 4
Collects bucket name and credentials, writes config, and runs status to verify connectivity
- 5
Re-runs the backup, reports upload paths, and creates a daily cron job at 2 AM
Archive uploaded to the configured bucket; daily backup scheduled at 2 AM
Requirements
- Cloud storage account with an S3-compatible provider (AWS S3, Cloudflare R2, Backblaze B2, MinIO, or DigitalOcean Spaces)
- ACCESS_KEY_ID and SECRET_ACCESS_KEY for the chosen storage provider
- Storage bucket created in the chosen provider
Installation
clawhub install obuchowski/cloud-backupRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.