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)