backups with restic integrated
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
whipper
|
||||
flac
|
||||
tor-browser
|
||||
restic
|
||||
];
|
||||
|
||||
programs.steam.enable = true;
|
||||
@@ -130,4 +131,13 @@
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
services.restic.backups.backup = {
|
||||
repository = "rest:http://10.0.0.4:8000/backup";
|
||||
initialize = true;
|
||||
passwordFile = "/home/lilac/test-password";
|
||||
paths = [ "/var/lib/immich" "/var/lib/music" "/var/lib/gitea" ];
|
||||
timerConfig.OnCalendar = "03:30";
|
||||
pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" "--keep-monthly 12" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user