feat(backup): 3-2-1 backup strategy with multi-target support#400
Open
Heykool wants to merge 1 commit intoillbnm:masterfrom
Open
feat(backup): 3-2-1 backup strategy with multi-target support#400Heykool wants to merge 1 commit intoillbnm:masterfrom
Heykool wants to merge 1 commit intoillbnm:masterfrom
Conversation
- scripts/backup.sh: Full backup script with: - --target all|media for selective backups - --dry-run preview mode - --restore <backup_id> for full restore - --list and --verify modes - Support for BACKUP_TARGET=local|s3|b2|sftp|r2 - Docker volumes, configs, and databases backup - ntfy notifications on success/failure - Retention policy (BACKUP_RETENTION_DAYS) - Restic-compatible manifest - docs/disaster-recovery.md: Complete DR guide with: - Full restore procedure (new host from scratch) - Service restore order (Base → DB → SSO → others) - RTO estimates per scenario - Verification checklist - Backup target configuration guide - systemd timer + crontab setup instructions - systemd/: Timer (daily 2:00 AM) + service files - .env.example: Backup configuration variables Closes illbnm#12
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the 3-2-1 backup strategy for the homelab-stack as described in issue #12.
What was implemented
scripts/backup.sh — Full-featured backup script with:
docs/disaster-recovery.md — Complete DR guide with:
systemd/ — Daily 2:00 AM automation:
.env.example — Added backup configuration section:
Acceptance Criteria
backup.sh --target allbacks up all volumes, configs, and databasesbackup.sh --target mediabacks up media volumes only--dry-runpreviews without writing--restore <id>performs full restore--listshows available backups--verifyvalidates backup integrityTesting
Bounty