mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 09:16:51 +00:00
Fixed restic entrypoint command
This commit is contained in:
parent
4b39d6e4f9
commit
82821603f1
2
main.py
2
main.py
|
@ -480,7 +480,7 @@ def EnableOcserv():
|
||||||
def ListAllBackups():
|
def ListAllBackups():
|
||||||
backupListingProcessDescriptor = subprocess.Popen(["restic", "-r", "b2:" +
|
backupListingProcessDescriptor = subprocess.Popen(["restic", "-r", "b2:" +
|
||||||
request.headers.get("X-Repository-Name") + ":/sfbackup",
|
request.headers.get("X-Repository-Name") + ":/sfbackup",
|
||||||
"snapshots", "--password-file", "/var/lib/restic/rpass", "--json"
|
"snapshots", "list", "--password-file", "/var/lib/restic/rpass", "--json"
|
||||||
])
|
])
|
||||||
|
|
||||||
snapshotsList = backupListingProcessDescriptor.communicate()[0]
|
snapshotsList = backupListingProcessDescriptor.communicate()[0]
|
||||||
|
|
Loading…
Reference in a new issue