creates empty dir after upgrading

Bug #1520569 reported by Clark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Sergei Glushchenko
2.3
Fix Released
Medium
Sergei Glushchenko

Bug Description

After upgrading to innobackupex 2.3.2 an empty directory is created in the same directory where the script is executed

When running the syntax from the command line as root no directory is created, but when running the command from php-cli as root a new empty directory is created each time the script is running

Empty dir:
/var/www/2015-11-21_02-58-58

Version:
innobackupex -v
innobackupex version 2.3.2 Linux (x86_64) (revision id: 306a2e0)

Command line as root:
innobackupex --defaults-file=/var/ini/mysql/my.cnf --user=root --password=xxx --databases="db1 db2 mysql" --stream=tar ./ 2> /var/www/bak/db/innobackupex.log | gzip -c -1 > /var/www/bak/db/2015-11-27-1244_mysql.tar.gz

From php-cli as root:
exec('innobackupex --defaults-file=/var/ini/mysql/my.cnf --user=root --password=xxx --databases="db1 db2 mysql" --stream=tar ./ 2> /var/www/bak/db/innobackupex.log | gzip -c -1 > /var/www/bak/db/2015-11-27-1244_mysql.tar.gz');

Revision history for this message
Clark (clark-3) wrote :

I just found out that when running the syntax from the command line the empty dir is created in the home dir..

So no matter if you run the command from php or the command line the directory is always created

Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

Can you provide output of /var/www/bak/db/innobackupex.log and contents of /var/ini/mysql/my.cnf

Changed in percona-xtrabackup:
status: New → Incomplete
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

innobackupex creates empty directory when --stream specified. --stream should imply --no-timestamp.

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-740

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.