From 1ff4cac3b03cfb78a7d3f4b29750a808058a0887 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 15 Jun 2021 19:09:51 +0200 Subject: [PATCH] create --dry-run: fix display of kept tagfile, fixes #5834 --- src/borg/archiver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index d935b2dcc8..458fc04e03 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -651,8 +651,9 @@ def _process(self, archive, cache, matcher, exclude_caches, exclude_if_present, # 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: - archive.process_dir(path, st) + if keep_exclude_tags: + if not dry_run: + archive.process_dir(path, st) for tag_path in tag_paths: self._process(archive, cache, matcher, exclude_caches, exclude_if_present, keep_exclude_tags, skip_inodes, tag_path, restrict_dev,