Professional Documents
Culture Documents
1. Logical backups
2. Raw Backups or physical backups
Logical backups:
without data
only data
mysqldump --help
Incremintal backup
start time
stop time
start position
stop position
mysql-binlog --help
mysqlbinlog --base64-output="decode-rows"
/u01/mysql/inst2/mysql-bin-3307.000007>/u01/backup/incr1.sql
Raw Backups
1. performing a full-backup :
? innobackupex-1.5.1 --defaults-file=/etc/my.cnf--user=xxx--ask-pass --
socket=xxx --incremental /u01/mysql/tmp/incr/
--incremental-basedir=/u01/mysql/tmp/full_bkp/2014-10-13_14-34-32/
� Output file for 1st incremental backup:/u01/mysql/tmp/incr/2014-10-13_14-43-
11/
? innobackupex-1.5.1 --defaults-file=/etc/my.cnf--user=xxx--ask-pass --
socket=xxxx --incremental /u01/mysql/tmp/incr/
--incremental-basedir=/u01/mysql/tmp/incr/2014-10-13_14-43-11/
� Output file for 2nd incremental backup: /u01/mysql/tmp/incr/2014-10-13_14-51-
07/
Taking Single DB backup.
Once you merge the base with all the increments, you can prepare it to roll back
the uncommitted transactions:
� innobackupex --apply-log /u01/mysql/tmp/full_bkp/2014-10-13_14-34-32/