コード例 #1
0
    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 = client_opts['defaults-extra-file'] + \
                   [self.config['mariabackup']['global-defaults']]
        util.generate_defaults_file(defaults_path, includes, client_opts)
        self.defaults_path = defaults_path
コード例 #2
0
ファイル: plugin.py プロジェクト: holland-backup/holland
    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 = client_opts["defaults-extra-file"] + [
            self.config["mariabackup"]["global-defaults"]
        ]
        util.generate_defaults_file(defaults_path, includes, client_opts)
        self.defaults_path = defaults_path
コード例 #3
0
ファイル: plugin.py プロジェクト: bmildren/holland
    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 = client_opts["defaults-extra-file"] + [
            self.config["mariabackup"]["global-defaults"]
        ]
        util.generate_defaults_file(defaults_path, includes, client_opts)
        self.defaults_path = defaults_path