innobackupex vs xtrabackup
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB | Status tracked in 2.4 | |||||
2.3 |
Fix Released
|
High
|
Hrvoje Matijakovic | |||
2.4 |
Fix Released
|
High
|
Hrvoje Matijakovic |
Bug Description
The documentation for xtrabackup version 2.3 states that innobackupex is deprecated
https:/
innobackupex is the symlink for xtrabackup. innobackupex still supports all features and syntax as 2.2 version did, but is now deprecated and will be removed in next major release.
but then suggests using innobackupex for the prepare
https:/
For prepare innobackupex --apply-log should be used
and later explains how innobackupex can perform functions that xtrabackup can't
https:/
Note that xtrabackup backs up only the InnoDB data. You must separately restore the MySQL system database, MyISAM data, table definition files (.frm files), and everything else necessary to make your database functional – or innobackupex can do it for you.
https:/
If you want a usable full backup, use innobackupex since xtrabackup itself won’t copy table definitions, triggers, or anything else that’s not .ibd.
https:/
If you want a usable full backup, use innobackupex since xtrabackup itself won’t copy table definitions, triggers, or anything else that’s not .ibd.
Changed in percona-xtrabackup: | |
assignee: | nobody → Hrvoje Matijakovic (hrvojem) |
And the documentation states
https:/ /www.percona. com/doc/ percona- xtrabackup/ 2.3/xtrabackup_ bin/limitation. html
xtrabackup copies only the InnoDB data and logs. It does not copy table definition files (.frm files), MyISAM data, users, privileges, or any other portions of the overall database that lie outside of the InnoDB data. To back up this data, you need a wrapper script such as innobackupex.
When I look at the backup created by running xtrabackup I see non-InnoDB data including the table definition files and the MyISAM data from the mysql database. Here is an excerpt from the log file when running xtrabackup 2.3.3:
160224 06:42:09 Starting to backup non-InnoDB tables and files tables_ priv.MYD to <STDOUT> general_ log.CSV to <STDOUT>
160224 06:42:09 [01] Streaming ./mysql/func.MYD to <STDOUT>
160224 06:42:09 [01] ...done
160224 06:42:09 [01] Streaming ./mysql/
160224 06:42:09 [01] ...done
160224 06:42:09 [01] Streaming ./mysql/event.MYD to <STDOUT>
160224 06:42:09 [01] ...done
160224 06:42:09 [01] Streaming ./mysql/
160224 06:42:09 [01] ...done
160224 06:42:09 [01] Streaming ./mysql/servers.frm to <STDOUT>
160224 06:42:09 [01] ...done