From 80842bc09cd19b6e3823e9380b8911a2bc9b077d Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:04:30 -0500 Subject: [PATCH] added prune before getting the size --- src/restic/forget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/restic/forget.py b/src/restic/forget.py index 9336b70..def37ed 100644 --- a/src/restic/forget.py +++ b/src/restic/forget.py @@ -10,6 +10,7 @@ from rich.logging import RichHandler from restic import size, snapshots from restic.console import console, logger from restic.loki import send_to_loki +from restic.prune import prune class KeepStrategy(BaseModel): @@ -86,6 +87,7 @@ def main(loki_url: str, dry_run: bool, **kwargs): console.print_exception() else: snapshots.snapshot(loki_url) + prune(loki_url, dry_run) size.get_size(loki_url)