mirror of
https://github.com/uroni/urbackup-server-python-web-api-wrapper.git
synced 2025-10-26 11:38:16 +00:00
Add Backup browse function
This commit is contained in:
parent
db620863ed
commit
c3a8d378ac
@ -447,6 +447,19 @@ class urbackup_server:
|
||||
backups = self._get_json("backups", { "sa": "backups", "clientid": clientid })
|
||||
|
||||
return backups["backups"]
|
||||
|
||||
def get_backup_content(self, clientid, backupid, path = "/"):
|
||||
if not self.login():
|
||||
return None
|
||||
|
||||
content = self._get_json("backups", {
|
||||
"sa": "files",
|
||||
"clientid": clientid,
|
||||
"backupid": backupid,
|
||||
"path": path
|
||||
})
|
||||
|
||||
return content["files"]
|
||||
|
||||
def get_groups(self):
|
||||
if not self.login():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user