btrfsborg: compression, rm timelapse from rsync.net

This commit is contained in:
2025-03-15 19:41:36 +00:00
parent fce3ea08ef
commit 4059674d35
3 changed files with 75 additions and 47 deletions

View File

@@ -33,6 +33,10 @@ in
default = { };
};
backup_at = lib.mkOption { type = str; };
compression = lib.mkOption {
type = str;
default = "auto,zstd,10";
};
};
});
};
@@ -59,7 +63,7 @@ in
"config.mj.base.unitstatus.enable must be true";
lib.nameValuePair "${lib.strings.sanitizeDerivationName subvolume}-${toString i}" (
{
inherit (attrs) repo paths;
inherit (attrs) repo paths compression;
doInit = true;
encryption = {
@@ -67,7 +71,6 @@ in
passCommand = "cat ${cfg.passwordPath}";
};
extraArgs = "--remote-path=borg1";
compression = "auto,zstd,10";
extraCreateArgs = "--chunker-params buzhash,10,23,16,4095";
startAt = attrs.backup_at;
preHook = ''