nixos/borgbackup: change --prefix to --glob-archives

Fixes warning from `borg prune`:

  Warning: "--prefix" has been deprecated. Use "--glob-archives 'yourprefix*'" (-a) instead.
This commit is contained in:
Bjørn Forsman 2022-12-07 02:24:00 +01:00
parent 94624fb168
commit bbcfd192a8

View File

@ -58,7 +58,7 @@ let
'' + optionalString (cfg.prune.keep != { }) ''
borg prune $extraArgs \
${mkKeepArgs cfg} \
${optionalString (cfg.prune.prefix != null) "--prefix ${escapeShellArg cfg.prune.prefix} \\"}
${optionalString (cfg.prune.prefix != null) "--glob-archives ${escapeShellArg "${cfg.prune.prefix}*"} \\"}
$extraPruneArgs
${cfg.postPrune}
'';