rsync.net on zfsborg: less snapshots
This commit is contained in:
parent
1de6593d28
commit
ceec1b3412
@ -78,6 +78,12 @@
|
||||
"- gitea/data/repo-archive/"
|
||||
];
|
||||
backup_at = "*-*-* 01:00:00 UTC";
|
||||
prune.keep = {
|
||||
within = "1d";
|
||||
daily = 1;
|
||||
weekly = 0;
|
||||
monthly = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
mountpoint = "/var/lib";
|
||||
|
@ -36,6 +36,10 @@ in {
|
||||
type = listOf str;
|
||||
default = [];
|
||||
};
|
||||
prune = lib.mkOption {
|
||||
type = anything;
|
||||
default = {};
|
||||
};
|
||||
backup_at = lib.mkOption {type = str;};
|
||||
};
|
||||
});
|
||||
@ -95,7 +99,8 @@ in {
|
||||
BORG_RSH = ''ssh -i "${config.mj.base.zfsborg.sshKeyPath}"'';
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (attrs ? patterns) {inherit (attrs) patterns;})
|
||||
// lib.optionalAttrs (attrs ? patterns) {inherit (attrs) patterns;}
|
||||
// lib.optionalAttrs (attrs ? prune) {inherit (attrs) prune;})
|
||||
)
|
||||
dirs
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user