Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6644669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:11:39+00:00 2026-05-26T00:11:39+00:00

I would like to generate diffs for the sake of doing incremental backups of

  • 0

I would like to generate diffs for the sake of doing incremental backups of an sql database.

Using the standard unix ‘diff’ tool generates unnecessarily large files, since they include the full text of deleted lines. I only need support to be able to patch in one direction (to generate the current db dump from the full dump and an incremental patch).

How would I go about doing this? I have tried so far using diff -e and patch -e, but it doesn’t seem to be working correctly, as the resulting file is corrupt (possibly an issue with the ‘ed’ tool used in cygwin)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:11:39+00:00Added an answer on May 26, 2026 at 12:11 am

    back in the old days, before Vim, there used to be a line-oriented UNIX editor called ‘ed’ ..

    diff has an option built in ( -e option ) , with which you can create an edit script from the diff.

    Check here: and look for the section “Edit Script”

    http://en.wikipedia.org/wiki/Diff

    http://docs.freebsd.org/info/diff/diff.info.ed_Scripts.html

    here’s an example:

    http://www.araxis.com/merge/topic_diff_report_editscript.html


    another way to do this is to create a patch file (see ‘man patch’)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to generate diff-like SQL files to compare the DATA and the
I would like to generate an Excel file using a database query in VB.Net.
I would like to generate C wrappers over some C++ API using SWIG. From
I would like to generate a random filename in unix shell (say tcshell). The
I would like to generate funnel chart on my web page. I am using
I would like to generate emails using the Razor view engine. From what I've
I would like to generate a SQLFORM with radiobuttons using the radiobutton widget as
I would like to generate a random text using letter frequencies from a book
I would like to generate HTML Snapshots using Watir , hosted on Heroku .
I would like to generate a random floating point number between 2 values. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.