i fixed it

This commit is contained in:
2025-10-12 20:00:31 -05:00
parent 758ab5beb1
commit 3acd59d938
6 changed files with 7 additions and 107 deletions

View File

@@ -38,7 +38,7 @@ in
description = "borg repository passphrase file";
};
mode = lib.mkOption {
type = lib.types.string;
type = lib.types.str;
default = "split"; # "all"
description = "choice between creating one archive of all paths or one archive per service";
};
@@ -88,7 +88,7 @@ in
${lib.concatStringsSep " " bak_paths.paths}
echo "pruning old backups for ${bak_name}..."
borg prune -v --list "$BORG_REPO" \
--prefix "${bak_name}-" \
--glob-archives "*-${bak_name}" \
--keep-daily=7 \
--keep-weekly=52 \
--keep-monthly=-1
@@ -115,7 +115,7 @@ in
echo "pruning old backups for ${toString config.networking.hostName}..."
borg prune -v --list "$BORG_REPO" \
--prefix "${toString config.networking.hostName}" \
--glob-archives "*-${toString config.networking.hostName}" \
--keep-daily=7 \
--keep-weekly=52 \
--keep-monthly=-1