feat: add backup module with Restic + Backblaze B2

- Encrypted backups to B2
- Configurable retention (daily/weekly/monthly)
- SOPS-managed credentials
- Automatic pruning

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashisgreat22 2026-03-18 14:11:11 +01:00
parent f82b822d16
commit fd056367d2
3 changed files with 146 additions and 0 deletions

View file

@ -116,4 +116,15 @@
# === CrowdSec ===
myModules.crowdsec.enable = true;
# === Backups (Restic + B2) ===
# myModules.backup = {
# enable = true;
# repository = "b2:your-bucket-name";
# paths = [ "/var/lib/bitwarden_rs" "/var/backup/vaultwarden" ];
# };
# Add to secrets.yaml:
# b2_account_id: "your-key-id"
# b2_account_key: "your-key"
# restic_password: "strong-encryption-password"
}