Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Imagine, I am building a web application of a Bank. Therefore I need to backup the database at least once a day and to backup the whole database everyday does not sound efficient. So I want to know how to create the backup file of the database only holding the transactions of current day.

share|improve this question

migrated from Aug 6 '10 at 2:35

This question came from our site for professional and enthusiast programmers.

@Starx: yes, so, serverfault. And you're looking for replication probably, with daily dumps on the replicating slave. – Wrikken Aug 6 '10 at 2:30

Try MySQL binary logging. Back up the day's binlogs only.

share|improve this answer

Make Incremental Backups by Enabling the Binary Log.

MySQL supports incremental backups: You must start the server with the --log-bin option to enable binary logging; see Section 5.2.4, “The Binary Log”. The binary log files provide you with the information you need to replicate changes to the database that are made subsequent to the point at which you performed a backup. At the moment you want to make an incremental backup (containing all changes that happened since the last full or incremental backup), you should rotate the binary log by using FLUSH LOGS.

More on:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.