mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-11 18:39:30 +00:00
refactor(backups): add repo init
This commit is contained in:
parent
c9fd656181
commit
86e2b90bef
|
@ -81,6 +81,17 @@ class ResticBackuper(AbstractBackuper):
|
||||||
# stderr=subprocess.STDOUT,
|
# stderr=subprocess.STDOUT,
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
def init(self, repo_name):
|
||||||
|
init_command = self.restic_command(
|
||||||
|
repo_name,
|
||||||
|
"init",
|
||||||
|
)
|
||||||
|
subprocess.Popen(
|
||||||
|
init_command,
|
||||||
|
shell=False,
|
||||||
|
stderr=subprocess.STDOUT,
|
||||||
|
)
|
||||||
|
|
||||||
def restore_from_backup(self, repo_name, snapshot_id, folder):
|
def restore_from_backup(self, repo_name, snapshot_id, folder):
|
||||||
"""
|
"""
|
||||||
Restore from backup with restic
|
Restore from backup with restic
|
||||||
|
|
Loading…
Reference in a new issue