From 4c00bb0d2f080fd33dad531d58f65dd11377bb0b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 18 Jan 2016 14:30:41 +0100 Subject: [PATCH] fix crash when using borg create --dry-run --keep-tag-files, fixes #570 --- borg/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/archiver.py b/borg/archiver.py index 9cb7e3d1e..2f94aa14b 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -228,7 +228,7 @@ class Archiver: elif stat.S_ISDIR(st.st_mode): tag_paths = dir_is_tagged(path, exclude_caches, exclude_if_present) if tag_paths: - if keep_tag_files: + if keep_tag_files and not dry_run: archive.process_dir(path, st) for tag_path in tag_paths: self._process(archive, cache, excludes, exclude_caches, exclude_if_present,