directory - On linux is there any tool can compare 2 flolders and produce a patch file? -
a,b,c file in directory /opt/src
d,e,a file in dircory /opt/dest
compare src , dest, figure out should add b,c dest , delete d,e, , see if changed
and give a binary patch or overwrite it.
all operation pack in patch file,including changed , missed file content, can copy file machine execute.
i know it's simple write program this, don't want invent wheel again
rsync seems meet of needs don't know how make patch.
thanks
old way: diff -unr /opt/src /opt/dest > /tmp/src.patch
there programs automate process, such makepatch.
Comments
Post a Comment