innobackupex --datadir what about this ?

Hi,

what about --datadir ?
It can be set in xtrabackup command-line options but how to pass this options from innobackupex script ?
Please Help !!!

Brumia

Hi,

Generally, you don’t need to specify --datadir with innobackupex script because it will find datadir by itself. But still you want to give than you can use --defaults-file=/path/to/my.cnf where datadir will be mentioned OR you can create a separate options file. Check here.
http://www.percona.com/doc/percona-xtrabackup/2.1/innobackupex/creating_a_backup_ibk.html

but why innobackupex or xtrabackup didnt get datadir from instance variable (show variables like ‘%datadir%’) ?