From 360f7e502f6e5289012dc6c0e6dfeb56aa485319 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Fri, 23 Aug 2024 14:16:13 +0100 Subject: [PATCH] added borg delete --- norg/restic/restic.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/norg/restic/restic.nim b/norg/restic/restic.nim index 22e358d..7f6fba0 100644 --- a/norg/restic/restic.nim +++ b/norg/restic/restic.nim @@ -34,5 +34,8 @@ proc execute*(nc: NorgConfig, repo: Repository) = echo "Pruning repo: ", repo.label discard pruneRepo(nc, repo) run_actions(norg_config.actions.after_prune) + of DELETE: + echo "Forgetting snapshot: ", nc.args.archive + discard forgetSnapshot(nc, repo) else: discard