mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 13:31:27 +00:00
Update 'main.py'
This commit is contained in:
parent
1bf4a779af
commit
ba2d785ada
2
main.py
2
main.py
|
@ -480,7 +480,7 @@ def EnableOcserv():
|
|||
def ListAllBackups():
|
||||
|
||||
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"))
|
||||
|
||||
backupListingProcessDescriptor = subprocess.Popen(backupListingCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
|
|
Loading…
Reference in a new issue