mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-25 15:33:39 +00:00
Merge pull request #4025 from ThomasWaldmann/fix-cachedir-1.1
don't archive tagged dir when recursing an excluded dir, fixes #3991
This commit is contained in:
commit
855ae3f7ee
1 changed files with 10 additions and 7 deletions
|
@ -607,6 +607,9 @@ def _process(self, archive, cache, matcher, exclude_caches, exclude_if_present,
|
||||||
if recurse:
|
if recurse:
|
||||||
tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present)
|
tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present)
|
||||||
if tag_paths:
|
if tag_paths:
|
||||||
|
# if we are already recursing in an excluded dir, we do not need to do anything else than
|
||||||
|
# returning (we do not need to archive or recurse into tagged directories), see #3991:
|
||||||
|
if not recurse_excluded_dir:
|
||||||
if keep_exclude_tags and not dry_run:
|
if keep_exclude_tags and not dry_run:
|
||||||
archive.process_dir(path, st)
|
archive.process_dir(path, st)
|
||||||
for tag_path in tag_paths:
|
for tag_path in tag_paths:
|
||||||
|
|
Loading…
Reference in a new issue