borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.23k stars 743 forks source link

extract differences/matches between two archives #4939

Open leadenhead opened 4 years ago

leadenhead commented 4 years ago

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 commented 4 years ago

Hello! Anyone handle my request? Please!

ThomasWaldmann commented 4 years ago

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

leadenhead commented 4 years ago

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

ThomasWaldmann commented 4 years ago

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.