mirror of
https://github.com/hanzoskill/simple-backup.git
synced 2026-10-30 21:03:45 +00:00
1.3 KiB
1.3 KiB
name, description, metadata
| name | description | metadata | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| simple-backup | Backup agent brain (workspace) and body (state) to local folder and optionally sync to cloud via rclone. |
|
Simple Backup
A robust backup script that:
- Stages: Copies
~/bot(workspace),~/.bot(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:
~/.bot/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 |
~/bot/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 |