mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-27 22:41:28 +00:00
Backups fix
This commit is contained in:
parent
4f30017132
commit
8275f6b240
|
@ -177,6 +177,7 @@ class ResticController:
|
||||||
"--json",
|
"--json",
|
||||||
"backup",
|
"backup",
|
||||||
"/var",
|
"/var",
|
||||||
|
"/etc/nixos",
|
||||||
]
|
]
|
||||||
with open("/var/backup.log", "w", encoding="utf-8") as log_file:
|
with open("/var/backup.log", "w", encoding="utf-8") as log_file:
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
|
@ -248,7 +249,7 @@ class ResticController:
|
||||||
"restore",
|
"restore",
|
||||||
snapshot_id,
|
snapshot_id,
|
||||||
"--target",
|
"--target",
|
||||||
"/",
|
"\"/var " + "/etc/nixos\"",
|
||||||
]
|
]
|
||||||
|
|
||||||
self.state = ResticStates.RESTORING
|
self.state = ResticStates.RESTORING
|
||||||
|
|
Loading…
Reference in a new issue