Fix restic-batch script
This commit is contained in:
parent
69c5bd067e
commit
f454d1d421
@ -122,11 +122,10 @@ if __name__ == "__main__":
|
||||
cwd=backup_path, env=environ, check=True)
|
||||
subprocess.run(
|
||||
restic_cmd_base + ["forget", "--prune",
|
||||
"--keep-daily", config["restic_keep_daily"],
|
||||
"--keep-monthly", config["restic_keep_monthly"]],
|
||||
"--keep-daily", str(config["restic_keep_daily"]),
|
||||
"--keep-monthly", str(config["restic_keep_monthly"])],
|
||||
env=environ, check=True,
|
||||
)
|
||||
subprocess.run(restic_cmd_base + ["check"], env=environ, check=True)
|
||||
|
||||
finally:
|
||||
subprocess.run(["/usr/sbin/zfs", "destroy", "rpool/restic"], check=True)
|
||||
|
Loading…
Reference in New Issue
Block a user