fix formatting
This commit is contained in:
parent
7855de6a3e
commit
2277e25eca
1 changed files with 17 additions and 17 deletions
|
@ -68,23 +68,23 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.borgbackup.jobs.gs = mkIf cfg.gs.enable {
|
services.borgbackup.jobs.gs = mkIf cfg.gs.enable {
|
||||||
paths = "/";
|
paths = "/";
|
||||||
exclude = backupExcludes;
|
exclude = backupExcludes;
|
||||||
repo = "/backup/${config.networking.hostName}";
|
repo = "/backup/${config.networking.hostName}";
|
||||||
doInit = false;
|
doInit = false;
|
||||||
encryption = {
|
encryption = {
|
||||||
mode = "repokey";
|
mode = "repokey";
|
||||||
passCommand = "cat ${cfg.gs.passphrasePath}";
|
passCommand = "cat ${cfg.gs.passphrasePath}";
|
||||||
};
|
};
|
||||||
compression = "auto,lz4";
|
compression = "auto,lz4";
|
||||||
prune.keep = {
|
prune.keep = {
|
||||||
within = "1d"; # Keep all archives from the last day
|
within = "1d"; # Keep all archives from the last day
|
||||||
daily = 7;
|
daily = 7;
|
||||||
weekly = 2;
|
weekly = 2;
|
||||||
monthly = -1; # Keep at least one archive for each month
|
monthly = -1; # Keep at least one archive for each month
|
||||||
yearly = -1; # Keep at least one archive for each year
|
yearly = -1; # Keep at least one archive for each year
|
||||||
};
|
};
|
||||||
startAt = "monthly";
|
startAt = "monthly";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.borgbackup.jobs.bs = mkIf cfg.bs.enable {
|
services.borgbackup.jobs.bs = mkIf cfg.bs.enable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue