mirror of https://github.com/borgbase/vorta
Specify the use of a `sh:`-style pattern when pruning with borg v2.
With borg v2.0.0b3 the default pattern style was changed to identical matching. * src/vorta/borg/prune.py (BorgPruneJob.prepare)
This commit is contained in:
parent
ba5c7c5511
commit
e275215c71
|
@ -48,7 +48,7 @@ class BorgPruneJob(BorgJob):
|
|||
formatted_prune_prefix = format_archive_name(profile, profile.prune_prefix)
|
||||
|
||||
if borg_compat.check('V122'):
|
||||
pruning_opts += ['-a', formatted_prune_prefix + '*'] # sh: pattern
|
||||
pruning_opts += ['-a', 'sh:' + formatted_prune_prefix + '*']
|
||||
else:
|
||||
pruning_opts += ['--prefix', formatted_prune_prefix]
|
||||
|
||||
|
|
Loading…
Reference in New Issue