Applying a patch from a diff in python (if possible)

A

Astan

Hi,
I'm trying to synch up two databases that are very far from each other
using diff and patch. Currently, what happens is a mysqldump on
database A (which is linux) which is sent over to database B and over
time the diff of this mysql is sent over to database B. The database B
lives on a NAS server without any linux machines available (all of
them are windows 7s) to apply the patch to the diff. I've been looking
into the python diff modules and it seems that most can't deal with
files (these .diff files are large and binary since the data in the
database is all sorts of binary). Also I've had a look at the
patch.exe program for windows which also complains about the file
being binary (or something. i've tried all sorts of flags and they
don't seem to work). Are there any patch modules out there that I'm
missing? The diff_patch_match module doesn't seem to like the diffs
with angle brackets
Thanks for any help
 
A

Astan

Hi,
I'm trying to synch up two databases that are very far from each other
using diff and patch. Currently, what happens is a mysqldump on
database A (which is linux) which is sent over to database B and over
time the diff of this mysql is sent over to database B. The database B
lives on a NAS server without any linux machines available (all of
them are windows 7s) to apply the patch to the diff. I've been looking
into the python diff modules and it seems that most can't deal with
files (these .diff files are large and binary since the data in the
database is all sorts of binary). Also I've had a look at the
patch.exe program for windows which also complains about the file
being binary (or something. i've tried all sorts of flags and they
don't seem to work). Are there any patch modules out there that I'm
missing? The diff_patch_match module doesn't seem to like the diffs
with angle brackets
Thanks for any help

Ignore me. I just figured out cygwin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top