Commit 9b1c5864 authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Show borg info on backup end

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <>
parent 07954fcc
......@@ -136,5 +136,12 @@ for image_key in images:
if args.verbose:
print '#============================================================'
# show borgbackup info
if args.verbose:
print functions.borgbackup_info()
except Exception as ex:
print ex
# disconnect form 3PAR
import subprocess
import config
def bool_arg(string):
if string != True and string != '1' and string != 'YES':
return False
......@@ -122,3 +126,10 @@ def filter_images(all_images, datastores, args):
return images
return all_images
def borgbackup_info():
return subprocess.check_output('borg info %s' % (config.BACKUP_REPO), shell=True)
except subprocess.CalledProcessError as ex:
raise Exception('Can not issue borg info command on repo %s!' % (config.BACKUP_REPO), ex)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment