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

Discussion in 'Python' started by Astan, May 24, 2012.

  1. Astan

    Astan Guest

    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
     
    Astan, May 24, 2012
    #1
    1. Advertising

  2. Astan

    Astan Guest

    On May 24, 1:24 pm, Astan <> wrote:
    > 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.
     
    Astan, May 24, 2012
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cyril Vi?ville

    diff Process under diff users

    Cyril Vi?ville, Jun 29, 2004, in forum: Perl
    Replies:
    1
    Views:
    518
    Joe Smith
    Jun 29, 2004
  2. Berrucho
    Replies:
    2
    Views:
    655
    Infant Newbie
    Dec 5, 2003
  3. A Traveler

    Diff CSS styles for diff INPUT TYPE='s?

    A Traveler, Aug 31, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,940
    Steve Fulton
    Aug 31, 2004
  4. Replies:
    1
    Views:
    337
    Erik Wikström
    Jan 12, 2009
  5. Austin Ziegler

    [ANN] Diff::LCS 1.1.0, Diff::LCS 1.0.4

    Austin Ziegler, Aug 8, 2004, in forum: Ruby
    Replies:
    3
    Views:
    201
    Austin Ziegler
    Aug 9, 2004
Loading...

Share This Page