1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-02 21:25:48 +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
parent 8e8cb7873c
commit bc8f534430
No known key found for this signature in database
GPG key ID: 00F630DFDEE25747

View file

@ -48,7 +48,7 @@ def prepare(cls, profile):
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]