def restore_local(self): logger.info('Restoring data') local.extract_cb(filename='couchbase.rpm') local.cbbackupmgr_restore( master_node=self.master_node, cluster_spec=self.cluster_spec, threads=self.test_config.restore_settings.threads, archive=self.test_config.restore_settings.backup_storage, repo=self.test_config.restore_settings.backup_repo, )
def restore_local(self): logger.info('Restoring data') local.extract_cb(filename='couchbase.rpm') local.purge_restore_progress( self.cluster_spec, archive=self.test_config.restore_settings.backup_storage, repo=self.test_config.restore_settings.backup_repo) local.cbbackupmgr_restore( master_node=self.master_node, cluster_spec=self.cluster_spec, threads=self.test_config.restore_settings.threads, archive=self.test_config.restore_settings.backup_storage, repo=self.test_config.restore_settings.backup_repo, include_data=self.test_config.backup_settings.include_data, map_data=self.test_config.restore_settings.map_data, use_tls=self.test_config.restore_settings.use_tls)
def download_tools(self): options = Options() options.version = self.build if self.rest.is_community(self.master_node): options.cluster_edition = 'community' else: options.cluster_edition = 'enterprise' installer = CouchbaseInstaller(self.cluster_spec, options) filename, url = installer.find_package() logger.info('Downloading "{}"'.format(url)) with open(filename, 'w') as fh: resp = requests.get(url) fh.write(resp.content) local.extract_cb(filename)
def extract_tools(self): local.extract_cb(filename='couchbase.rpm')