From 121286905bf80662316a8d4f227f06dc111f9259 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 31 Oct 2021 16:11:17 +0100 Subject: [PATCH] Add some more forget options --- arch-config/Dokumente/restic.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch-config/Dokumente/restic.md b/arch-config/Dokumente/restic.md index aefd9cb1..55ed9a64 100755 --- a/arch-config/Dokumente/restic.md +++ b/arch-config/Dokumente/restic.md @@ -45,11 +45,17 @@ export B2_ACCOUNT_KEY= `restic -r b2:(bucket):(path) restore --target "(path)" (snapshot)` #### Remove Snapshots -Only keep last X snapshots. Use "-n" to do a dry run +`-n` for dry run +`--prune=true` also run prune + +Only keep last X snapshots. Does not remove data, just links `restic -r b2:(bucket):(path) forget -l (X)` -Clean up unreferenced data. "-n" for dry run +Remove snapshots without certain tag +`restic -r b2:(bucket):(path) forget --keep-tag=(tag)` + +Clean up unreferenced data. `restic -r b2:(bucket):(path) prune` ### lupusregina-backup home