added prune before getting the size

This commit is contained in:
John Lancaster
2024-06-03 21:04:30 -05:00
parent 4e7fa8c87a
commit 80842bc09c

View File

@@ -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)