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 and dest, figure out should add B,C to dest and delete D,E, and see if A is changed

and give A a binary patch or just to overwrite it.

all this operation pack in a patch file,including the changed and the missed file content, I can copy this file to another machine to execute.

I know it's simple to write some program to do this, but I don't want invent the wheel again

rsync seems meet most of my needs but don't know how to make a patch.



old way: diff -uNr /opt/src /opt/dest > /tmp/src.patch

there are programs that automate the process, such as makepatch.

Need Your Help

Sitemap creation with DOMDocument throws parsing error

php xml domdocument

I'm creating a sitemap in XML, it works well with one record displayed, but when including 1+ records, it throws an error:

How to escape special characters from textarea using jQuery?

javascript jquery html jquery-plugins

I want to know if there are any jquery components which automatically take care of special characters.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.