Backups fix
continuous-integration/drone/push Build is failing Details

backups-fix
Illia Chub 2022-02-15 07:27:10 +02:00
parent 4f30017132
commit 8275f6b240
1 changed files with 2 additions and 1 deletions

View File

@ -177,6 +177,7 @@ class ResticController:
"--json",
"backup",
"/var",
"/etc/nixos",
]
with open("/var/backup.log", "w", encoding="utf-8") as log_file:
subprocess.Popen(
@ -248,7 +249,7 @@ class ResticController:
"restore",
snapshot_id,
"--target",
"/",
"\"/var " + "/etc/nixos\"",
]
self.state = ResticStates.RESTORING