Hi there.

I am triying to enable the hotbackup system and it fails asking for a folder 
that doesnt exist, which is ok.

#############################
db-3-fd (850): message.c:858-4057 Enter dispatch_message type=3 msg=db-3-fd 
JobId 4057: Fatal error: python-fd: Dump command returned non-zero value: 3, 
command: "xtrabackup --defaults-extra-file=/etc/my.cnf --backup 
--datadir=/var/lib/mysql --stream=xbstream --extra-lsndir=/tmp/tmpiXmuYV " 
message: 
db-3-fd (850): message.c:1129-4057 DIRECTOR for following msg: db-3-fd JobId 
4057: Fatal error: python-fd: Dump command returned non-zero value: 3, command: 
"xtrabackup --defaults-extra-file=/etc/my.cnf --backup --datadir=/var/lib/mysql 
--stream=xbstream --extra-lsndir=/tmp/tmpiXmuYV " message: 
#############################

The problem is, i am passing this throught the fileset from the bareos-director

#############################

FileSet {
  Name = "galera-node-xtrabackup"
  # include directory
  Include {
    Options {
      Signature = MD5
      Compression = GZIP
      noatime = yes
    }
    # the directory we are including
    # note: no trailing slashes!
    File = /var/mysql-bak
    Plugin = 
"python:module_path=/usr/lib64/bareos/plugins:module_name=bareos-fd-percona:mycnf=/etc/my.cnf:dumpoptions:%s
 --backup --datadir=/var/lib/mysql/databases --stream=xbstream 
--extra-lsndir=%s "
#############################

But it seems doesnt work. I need to change it manually on the 
/usr/lib64/bareos/plugins/BareosFdPercona.py to the one passed on ht options 
and it works flawlessly.

What i am doing wrong? also, the way we should pass de variables on this doc\
https://github.com/bareos/bareos-contrib/tree/master/fd-plugins/bareos_percona 
is way to criptic and wrong, for example:

"defaultsfile option

This parameter allows to specify a defaultsfile that shall be used for 
mysql(client) and *xtrabackup+ command line utilities. Example:"

and the parameter that we have to pass to this defaultsfile is 
"mycnf="....instead "defaultsfile=".
I had to open the python to discover that this one is the one that is not the 
same, but the other are dumpoptions, but is not clear at all how and where 
should be passed, please clarify.


-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to