Update 'main.py'

This commit is contained in:
Illia Chub 2021-10-27 13:30:24 +03:00
parent 1bf4a779af
commit ba2d785ada

View file

@ -480,7 +480,7 @@ def EnableOcserv():
def ListAllBackups(): def ListAllBackups():
backupListingCommand = ''' backupListingCommand = '''
restic -r b2:{0}:/sfbackup snapshots list --password-file /var/lib/restic/rpass --json restic -r b2:{0}:/sfbackup snapshots --password-file /var/lib/restic/rpass --json
'''.format(request.headers.get("X-Repository-Name")) '''.format(request.headers.get("X-Repository-Name"))
backupListingProcessDescriptor = subprocess.Popen(backupListingCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) backupListingProcessDescriptor = subprocess.Popen(backupListingCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)