This commit is contained in:
commit
fef2377502
174 changed files with 7423 additions and 0 deletions
24
nixos-configurations/lindberg/backup.nix
Normal file
24
nixos-configurations/lindberg/backup.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
qois.backup-client.includePaths = [ "/mnt/data" ];
|
||||
|
||||
services.borgbackup.jobs = {
|
||||
data-local = {
|
||||
repo = "/mnt/backup/disks/data";
|
||||
doInit = true;
|
||||
paths = [ "/mnt/data/" ];
|
||||
prune.keep = {
|
||||
within = "14d";
|
||||
weekly = 4;
|
||||
monthly = 6;
|
||||
yearly = -1;
|
||||
};
|
||||
encryption = {
|
||||
mode = "authenticated";
|
||||
passphrase = "";
|
||||
};
|
||||
startAt = "07:15";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue