borg icon indicating copy to clipboard operation
borg copied to clipboard

extract differences/matches between two archives

Open leadenhead opened this issue 5 years ago • 4 comments

Got a question. How can I extract differences or matches between two archives? As far as I understand, there is an opportunity only to display these changes. But I would like to get this behavior:

Example: We have two archives "first" and "second". "first" contains files "A" and "B" (added files "A" and "B") "second" contains files "B" and "C" (file "A" is deleted and file "C" is added)

Comparing the differences of the archive "first" to the archive "second", we get the file "C". Comparing the differences of the archive “second” to the archive “first”, we get the file “A”. Comparing the coincidences between the two archives, we get the file "B".

Thanks for your reply!

leadenhead avatar Feb 08 '20 08:02 leadenhead

Hello! Anyone handle my request? Please!

leadenhead avatar Apr 06 '20 13:04 leadenhead

There is borg diff to display differences, but only extracting differences is not supported.

ThomasWaldmann avatar Apr 06 '20 15:04 ThomasWaldmann

Okay. Is it possible to add such a feature in the future?

leadenhead avatar Apr 07 '20 18:04 leadenhead

As borg is not backing up based on differences, but always does full backups, this would be a rather unusual feature.

Also, it is not clear why this would be useful.

ThomasWaldmann avatar Apr 07 '20 20:04 ThomasWaldmann