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
1 changed files with 1 additions and 1 deletions

View File

@ -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]