1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

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:
real-yfprojects 2023-01-20 17:06:01 +01:00 committed by Manu
parent ba5c7c5511
commit e275215c71

View file

@ -48,7 +48,7 @@ def prepare(cls, profile):
formatted_prune_prefix = format_archive_name(profile, profile.prune_prefix) formatted_prune_prefix = format_archive_name(profile, profile.prune_prefix)
if borg_compat.check('V122'): if borg_compat.check('V122'):
pruning_opts += ['-a', formatted_prune_prefix + '*'] # sh: pattern pruning_opts += ['-a', 'sh:' + formatted_prune_prefix + '*']
else: else:
pruning_opts += ['--prefix', formatted_prune_prefix] pruning_opts += ['--prefix', formatted_prune_prefix]