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:
parent
94624fb168
commit
bbcfd192a8
|
@ -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}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue