indeed
xtrabackup --backup --datadir=/var/lib/mysql --target-dir=b1
creates backup in the datadir
here is workaround:
xtrabackup --backup --datadir=/var/lib/mysql --target-dir=./b1
or just use full path
indeed
xtrabackup --backup --datadir= /var/lib/ mysql --target-dir=b1
creates backup in the datadir
here is workaround:
xtrabackup --backup --datadir= /var/lib/ mysql --target-dir=./b1
or just use full path