Bug #26721 innobackup does not copy .TRN and .TRG files

Submitted: 28 Feb 2007 14:52 Modified: 11 Jan 2008 18:31
Reporter: Elan Ruusamäe (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S1 (Critical)
Version:1.3.0 OS:Any
Assigned to: Pekka Lampio CPU Architecture:Any
Tags: ibbackup, innobackup

[28 Feb 2007 14:52] Elan Ruusamäe
Description:
innobackup (http://www.innodb.com/manual.php#innobackup) does not copy trigger information tables when creating snapshot, which causes loss of data.

trigger data is stored in database dir in .TRN and .TRG files.

How to repeat:
0. create database with triggers.
1. install ibbackup (evaluation version is ok) / innobackup from
http://www.innodb.com/order.php and http://www.innodb.com/manual.php#innobackup
2. run backup, ie:
# innobackup /etc/mysql/mysqld.conf --no-timestamp /var/tmp/innobackup
3. restore backup, ie:
# innobackup --apply-log /var/tmp/innobackup/backup-my.cnf /var/tmp/innobackup/
# mysqld --defaults-file=/var/tmp/innobackup/backup-my.cnf  --user=mysql
4. see that there are not triggers
mysql> show triggers;

Suggested fix:
here's patch which makes innobackup perl script to include .TRN and .TRG files:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/innobackup-trigger-tables.patch
[6 Mar 2007 15:19] Heikki Tuuri
This is fixed in upcoming 1.4.
[4 Oct 2007 0:45] Travis Cole
This has bitten us pretty badly recently. Is there an official fix coming soon?
[9 Nov 2007 17:21] Heikki Tuuri
Pekka please release a new innobackup script.
[10 Jan 2008 17:53] Omer Barnir
Workaround (limited - for some): copy files manually
[11 Jan 2008 18:31] Pekka Lampio
This bug has been fixed in Innobackup 1.4.0 which was released
on November 29, 2007. Innobackup 1.4.0 can be downloaded here:

http://www.innodb.com/download/innobackup-1.4.0

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.