Exemplo n.º 1
0
 def backup(self):
     credential = local.read_aws_credential(self.test_config.backup_settings.aws_credential_path)
     self.remote.create_aws_credential(credential)
     self.remote.backup(
         master_node=self.master_node,
         cluster_spec=self.cluster_spec,
         threads=self.test_config.backup_settings.threads,
         worker_home=self.worker_manager.WORKER_HOME,
         compression=self.test_config.backup_settings.compression,
         storage_type=self.test_config.backup_settings.storage_type,
         sink_type=self.test_config.backup_settings.sink_type,
         shards=self.test_config.backup_settings.shards,
         obj_staging_dir=self.test_config.backup_settings.obj_staging_dir,
         obj_region=self.test_config.backup_settings.obj_region,
         use_tls=self.test_config.backup_settings.use_tls
     )
Exemplo n.º 2
0
    def restore(self):
        self.remote.extract_cb(filename='couchbase.rpm',
                               worker_home=self.worker_manager.WORKER_HOME)
        self.remote.cbbackupmgr_version(
            worker_home=self.worker_manager.WORKER_HOME)
        credential = local.read_aws_credential(
            self.test_config.backup_settings.aws_credential_path)
        self.remote.create_aws_credential(credential)
        self.remote.client_drop_caches()

        self.remote.restore(
            cluster_spec=self.cluster_spec,
            master_node=self.master_node,
            threads=self.test_config.restore_settings.threads,
            worker_home=self.worker_manager.WORKER_HOME,
            archive=self.test_config.restore_settings.backup_storage,
            repo=self.test_config.restore_settings.backup_repo,
            obj_staging_dir=self.test_config.backup_settings.obj_staging_dir,
            obj_region=self.test_config.backup_settings.obj_region,
            use_tls=self.test_config.restore_settings.use_tls,
            map_data=self.test_config.restore_settings.map_data)
        self.wait_for_persistence()
        if self.test_config.collection.collection_map:
            self.spread_data()
Exemplo n.º 3
0
 def backup(self):
     credential = local.read_aws_credential(self.test_config.backup_settings.aws_credential_path)
     self.remote.create_aws_credential(credential)
     super().backup()