From 9465eb4c03112a69dea253b5cf35aa2a265b2050 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Mon, 8 Feb 2016 14:24:34 +0100 Subject: [PATCH] - add xen-password file with export pool-metadata --- libtisbackup/backup_xcp_metadata.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libtisbackup/backup_xcp_metadata.py b/libtisbackup/backup_xcp_metadata.py index 369514f..0ddbd10 100644 --- a/libtisbackup/backup_xcp_metadata.py +++ b/libtisbackup/backup_xcp_metadata.py @@ -33,8 +33,6 @@ class backup_xcp_metadata(backup_generic): type = 'xcp-dump-metadata' required_params = ['type','server_name','password_file','backup_name'] - user_xen, password_xen, null = open(self.password_file).read().split('\n') - def do_backup(self,stats): self.logger.debug('[%s] Connecting to %s with user root and key %s',self.backup_name,self.server_name,self.private_key) @@ -55,7 +53,7 @@ class backup_xcp_metadata(backup_generic): if not self.dry_run: - cmd = "/opt/xensource/bin/xe -s %s -u %s -pw %s pool-dump-database file-name=%s" %(self.server_name,self.user_xen,self.password_xen,temppath) + cmd = "/opt/xensource/bin/xe -s %s -pwf %s pool-dump-database file-name=%s" %(self.server_name,self.password_file,temppath) self.logger.debug('[%s] Dump XCP Metadata : %s',self.backup_name,cmd) call_external_process(cmd)