290 current 2025-10-11 11:39:41 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-11 11:51:18 -05:00
parent 1eb60294cb
commit efda5e5598

View File

@@ -83,13 +83,12 @@ in
"$BORG_REPO::$archive" \
${lib.concatStringsSep " " bak_paths.paths}
else
## flatten all paths from cfg.baks into one big list
# all_paths="${
# lib.concatStringsSep " "
# (lib.flatten
# (lib.mapAttrsToList (_: bak: bak.paths) cfg.baks))
# }"
archive="$timestamp-${config.networking.hostName}"
# flatten all paths from cfg.baks into one big list
all_paths="${
lib.concatStringsSep " "
(lib.flatten
(lib.mapAttrsToList (_: bak: bak.paths) cfg.baks))
}"
borg create \
--verbose \
--filter AME \
@@ -97,7 +96,7 @@ in
--stats \
--show-rc \
--compression lzma,9 \
"$BORG_REPO::$archive" \
"$BORG_REPO::$timestamp-${toString config.networking.hostName}" \
$all_paths
fi