| name | restic-backup |
| description | Fast, encrypted, deduplicated backups using Restic. |
| metadata | {"navig":{"emoji":"🔒","requires":{"bins":["restic"],"env":["RESTIC_PASSWORD","RESTIC_REPOSITORY"]}}} |
Restic Backup Skill
Sovereign backup solution. Encrypts your data locally before sending it anywhere.
Setup
Initialize Repo
restic init --repo /mnt/backup/restic-repo
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
restic init --repo s3:s3.amazonaws.com/bucket_name
Core Actions
Backup (Snapshot)
restic -r /mnt/backup/repo backup ~
restic -r /mnt/backup/repo backup --tag automated /var/www
Restore
restic -r /mnt/backup/repo snapshots
restic -r /mnt/backup/repo restore latest --target /tmp/restore-test
Maintenance
restic -r /mnt/backup/repo check
restic -r /mnt/backup/repo forget --keep-daily 7 --keep-weekly 4 --prune
Best Practices
- Environment Variables: Always use
RESTIC_PASSWORD env var instead of typing passwords.
- Automation: Run
forget --prune regularly to reclaim space.
- Verification: Run
check weekly to ensure data integrity.