From 902927b8620e2fe8a03d89321aa479e5fc581df9 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 12 Apr 2022 22:33:33 +0200 Subject: [PATCH] forget docs --- docs/markdown/location/forget.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/markdown/location/forget.md b/docs/markdown/location/forget.md index db4ed84..37e6e8f 100644 --- a/docs/markdown/location/forget.md +++ b/docs/markdown/location/forget.md @@ -37,4 +37,21 @@ global: keep-weekly: 52 ``` +## Automatically forget after backup + +You can also configure `autorestic` to automatically run the forget command for you after every backup. You can do that by specifying the `forget` option. + +```yaml | .autorestic.yml +version: 2 + +locations: + etc: + from: /etc + to: local + forget: prune # Or only "yes" if you don't want to prune + options: + forget: + keep-last: 5 +``` + > :ToCPrevNext