mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 10:39:50 +00:00
Merge pull request #7268 from ThomasWaldmann/recreate-with-target-1.2
recreate: when --target is given, do not detect "nothing to do"
This commit is contained in:
commit
dbba9cbc53
1 changed files with 8 additions and 1 deletions
|
@ -2131,7 +2131,14 @@ class ArchiveRecreater:
|
|||
target = self.create_target(archive, target_name)
|
||||
if self.exclude_if_present or self.exclude_caches:
|
||||
self.matcher_add_tagged_dirs(archive)
|
||||
if self.matcher.empty() and not self.recompress and not target.recreate_rechunkify and comment is None:
|
||||
if (
|
||||
self.matcher.empty()
|
||||
and not self.recompress
|
||||
and not target.recreate_rechunkify
|
||||
and comment is None
|
||||
and target_name is None
|
||||
):
|
||||
# nothing to do
|
||||
return False
|
||||
self.process_items(archive, target)
|
||||
replace_original = target_name is None
|
||||
|
|
Loading…
Add table
Reference in a new issue