feat: add automated backup configuration for all volumes
Added comprehensive backup configuration to Backrest:
**Repository Configuration:**
- Target: /repos (mounted from /mnt/hidrive/users/valknar/Backup)
- Password: falcon-backup-2025
- Auto-initialize and auto-unlock enabled
- Weekly prune schedule (Sundays at 2 AM)
- Weekly integrity checks (Sundays at 3 AM)
**Backup Plans** (11 plans covering all volumes):
1. **postgres-backup** (2 AM daily)
- PostgreSQL database
- Retention: 7 daily, 4 weekly, 6 monthly, 2 yearly
2. **redis-backup** (3 AM daily)
- Redis cache data
- Retention: 7 daily, 4 weekly, 3 monthly
3. **directus-uploads-backup** (4 AM daily)
- Directus media files
- Retention: 7 daily, 4 weekly, 6 monthly, 2 yearly
4. **directus-bundle-backup** (4 AM daily)
- Directus extensions
- Retention: 7 daily, 4 weekly, 3 monthly
5. **awesome-backup** (5 AM daily)
- Awesome app database
- Retention: 7 daily, 4 weekly, 6 monthly
6. **gotify-backup** (5 AM daily)
- Gotify notifications
- Retention: 7 daily, 4 weekly, 3 monthly
7. **scrapy-backup** (6 AM daily)
- Scrapyd data and spider code
- Retention: 7 daily, 4 weekly, 3 monthly
8. **n8n-backup** (6 AM daily)
- n8n workflow data
- Retention: 7 daily, 4 weekly, 6 monthly
9. **filestash-backup** (7 AM daily)
- Filestash state
- Retention: 7 daily, 4 weekly, 3 monthly
10. **linkwarden-backup** (7 AM daily)
- Linkwarden bookmarks and search index
- Retention: 7 daily, 4 weekly, 6 monthly
11. **letsencrypt-backup** (8 AM daily)
- SSL certificates
- Retention: 7 daily, 4 weekly, 12 monthly, 3 yearly
**Configuration Mount:**
- config.json mounted directly at /config/config.json
- Read-write mode to allow UI updates
- Removed backrest_config volume (using file mount instead)
All backups scheduled at different times to spread I/O load.
Critical data (postgres, directus, letsencrypt) has longer retention.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,10 +7,12 @@ services:
|
||||
volumes:
|
||||
# Backrest application data
|
||||
- backrest_data:/data
|
||||
- backrest_config:/config
|
||||
- backrest_cache:/cache
|
||||
- backrest_tmp:/tmp
|
||||
|
||||
# Configuration file (mount directly to override)
|
||||
- ./config.json:/config/config.json:rw
|
||||
|
||||
# Backup destination
|
||||
- ${RESTIC_BACKUP_PATH:-/mnt/hidrive/users/valknar/Backup}:/repos
|
||||
|
||||
@@ -57,8 +59,6 @@ services:
|
||||
volumes:
|
||||
backrest_data:
|
||||
name: ${RESTIC_COMPOSE_PROJECT_NAME}_data
|
||||
backrest_config:
|
||||
name: ${RESTIC_COMPOSE_PROJECT_NAME}_config
|
||||
backrest_cache:
|
||||
name: ${RESTIC_COMPOSE_PROJECT_NAME}_cache
|
||||
backrest_tmp:
|
||||
|
||||
Reference in New Issue
Block a user