def __init__(self, name, config, target_directory, dry_run=False): self.name = name self.config = config self.config.validate_config(CONFIGSPEC) self.target_directory = target_directory self.dry_run = dry_run defaults_path = join(self.target_directory, "my.cnf") client_opts = self.config["mysql:client"] includes = [self.config["xtrabackup"]["global-defaults"]] + client_opts["defaults-extra-file"] util.generate_defaults_file(defaults_path, includes, client_opts) self.defaults_path = defaults_path
def __init__(self, name, config, target_directory, dry_run=False): self.name = name self.config = config self.config.validate_config(CONFIGSPEC) self.target_directory = target_directory self.dry_run = dry_run defaults_path = join(self.target_directory, "my.cnf") client_opts = self.config["mysql:client"] includes = [self.config["xtrabackup"]["global-defaults"] ] + client_opts["defaults-extra-file"] util.generate_defaults_file(defaults_path, includes, client_opts) self.defaults_path = defaults_path
def __init__(self, name, config, target_directory, dry_run=False): self.name = name self.config = config self.config.validate_config(CONFIGSPEC) self.target_directory = target_directory self.dry_run = dry_run defaults_path = join(self.target_directory, 'my.cnf') client_opts = self.config['mysql:client'] includes = [self.config['xtrabackup']['global-defaults']] + \ client_opts['defaults-extra-file'] util.generate_defaults_file(defaults_path, includes, client_opts) self.defaults_path = defaults_path
def __init__(self, name, config, target_directory, dry_run=False): self.name = name self.config = config self.config.validate_config(CONFIGSPEC) self.target_directory = target_directory self.dry_run = dry_run defaults_path = join(self.target_directory, 'my.cnf') client_opts = self.config['mysql:client'] includes = [self.config['xtrabackup']['global-defaults']] + \ client_opts['defaults-extra-file'] util.generate_defaults_file(defaults_path, includes, client_opts) self.defaults_path = defaults_path