Skip to main content
2 of 2
clarified based on comments
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k

Binary diff of two folders

Let's say I have two folders: before and after.

./before:
bash

./after:
bash

The bash in the before folder differs from the bash in after.

Using bsdiff or a similar program, is there a way to create a binary patch between the two folders? The program does not have to support Windows. New files in the after directory need to be included with the patch file as well.

The reason I don't want to package after as a whole is to minimize the size of the patch.