Do Incremental Backups Without Full Copy

Registered by Baron Schwartz on 2010-10-22

Add --incremental-lsn-dir option to xtrabackup and make it write a copy of the xtrabackup_checkpoints file there. If the directory or its parents do not exist, create them. With this feature, if the backup is stored on a different machine, then we can still do incremental backups by saying --incremental-basedir=/path/to/dir, and we do not need to keep full backups locally. Also make innobackupex support this feature.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
Accepted for 1.6
Implementation:
Implemented
Milestone target:
None
Started by
Alexey Kopytov on 2011-12-23
Completed by
Alexey Kopytov on 2011-12-23

Sprints

Whiteboard

I have added the --extra-lsndir option. If this is given, xtrabackup will create the specified directory if it doesn't exist, and write an extra copy of the xtrabackup_checkpoints file into it.

It is then possible on subsequent incremental backups to refer to that directory as the --incremental-basedir. For example,

[baron@ginger 5.1.41]$ xtrabackup --datadir=data --backup --target-dir=backup1 --extra-lsndir=xtralsn
[baron@ginger 5.1.41]$ rm -rf backup1
[baron@ginger 5.1.41]$ xtrabackup --datadir=data --backup --target-dir=incremental1 --incremental-basedir=xtralsn

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.