added prune before getting the size
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user