This presentation shows the best practices when using Percona Xtrabackup to take backups. It shows how to compress, encrypt, stream and speed up backups.
9. 9
The basics
• Take a full backup
xtrabackup --backup --target-dir=/data/backups/
• Prepare a backup
xtrabackup --prepare --target-dir=/data/backups/
• Copy / Move back
xtrabackup --copy-back --target-dir=/data/backups/
xtrabackup --move-back --target-dir=/data/backups/
19. 19
Incremental Backups
• Backup only changes since last backup
•--incremental-lsn=LSN
- end of backup output - xtrabackup: The latest check point (for incremental): ‘XXXXXXX'
- xtrabackup_checkpoints (to_lsn)
•--incremental-basedir
•Copy only the delta changes based on LSN
- Check LSN of all InnoDB pages
- Percona Server - Change Page Tracker
• Add innodb_track_changed_pages to my.cnf