mirror of
https://github.com/nmasur/dotfiles
synced 2026-09-30 20:49:55 +00:00
restic: separate backup repository per host
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-09-29
|
||||||
|
|
||||||
|
- **Separated Restic backup repositories per host**:
|
||||||
|
- Updated `services.restic.backups.default.repository` in `platforms/nixos/modules/nmasur/presets/services/restic/restic.nix` to append `/${config.networking.hostName}`, isolating backups by host in S3 (e.g., `.../restic/flame` and `.../restic/swan`).
|
||||||
|
- Enabled `services.restic.backups.default.initialize = true` to automatically initialize the repository in S3 if it does not already exist.
|
||||||
|
- Resolves exclusive lock contention during post-backup `forget --prune` when multiple servers run scheduled backups in overlapping windows.
|
||||||
|
|
||||||
## 2026-09-19
|
## 2026-09-19
|
||||||
|
|
||||||
- **Fixed missing user attribute and deprecations during flake check**:
|
- **Fixed missing user attribute and deprecations during flake check**:
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ in
|
|||||||
|
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
default = {
|
default = {
|
||||||
repository = "s3:${cfg.s3.endpoint}/${cfg.s3.bucket}/restic";
|
repository = "s3:${cfg.s3.endpoint}/${cfg.s3.bucket}/restic/${config.networking.hostName}";
|
||||||
|
initialize = true;
|
||||||
paths = [ ];
|
paths = [ ];
|
||||||
environmentFile = config.secrets.restic-s3-creds.dest;
|
environmentFile = config.secrets.restic-s3-creds.dest;
|
||||||
passwordFile = config.secrets.restic.dest;
|
passwordFile = config.secrets.restic.dest;
|
||||||
|
|||||||
Reference in New Issue
Block a user