Comment 1 for bug 1376874

Revision history for this message
Fernando Ipar (fipar) wrote :

Furthermore, innobackupex returns 0 if both options are supplied but the backup is not prepared, which can be very bad if this invocation is wrapped in some other script:

root@ps56 ~]# innobackupex --decompress --apply-log /backups/2014-10-02_13-17-55/ && echo ok || echo error

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.

This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

Get the latest version of Percona XtraBackup, documentation, and help resources:
http://www.percona.com/xb/p

IMPORTANT: Please check that the decryption and decompression run completes successfully.
           At the end of a successful decryption and decompression run innobackupex
           prints "completed OK!".

innobackupex: qpress -do /backups/2014-10-02_13-17-55/ibdata1.qp > /backups/2014-10-02_13-17-55/ibdata1
innobackupex: qpress -do /backups/2014-10-02_13-17-55/ahi_scan_test_case/to_read.ibd.qp > /backups/2014-10-02_13-17-55/ahi_scan_test_case/to_read.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/ahi_scan_test_case/to_drop.ibd.qp > /backups/2014-10-02_13-17-55/ahi_scan_test_case/to_drop.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/test/test.ibd.qp > /backups/2014-10-02_13-17-55/test/test.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/mysql/slave_relay_log_info.ibd.qp > /backups/2014-10-02_13-17-55/mysql/slave_relay_log_info.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/mysql/slave_worker_info.ibd.qp > /backups/2014-10-02_13-17-55/mysql/slave_worker_info.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/mysql/innodb_index_stats.ibd.qp > /backups/2014-10-02_13-17-55/mysql/innodb_index_stats.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/mysql/innodb_table_stats.ibd.qp > /backups/2014-10-02_13-17-55/mysql/innodb_table_stats.ibd
innobackupex: qpress -do /backups/2014-10-02_13-17-55/mysql/slave_master_info.ibd.qp > /backups/2014-10-02_13-17-55/mysql/slave_master_info.ibd
141002 13:18:13 innobackupex: completed OK!
ok