Overview Hooks excluding Files Forget Policy Cron Docker Volumes
Autorestic supports declaring snapshot policies for location to avoid keeping old snapshot around if you don't need them.
This is based on Restic's snapshots policies, and can be enabled for each location as shown below:
Note This is a full example, of course you also can specify only one of them
1locations:
2 etc:
3 from: /etc
4 to: local
5 options:
6 forget:
7 keep-last: 5 # always keep at least 5 snapshots
8 keep-hourly: 3 # keep 3 last hourly shapshots
9 keep-daily: 4 # keep 4 last daily shapshots
10 keep-weekly: 1 # keep 1 last weekly shapshots
11 keep-monthly: 12 # keep 12 last monthly shapshots
12 keep-yearly: 7 # keep 7 last yearly shapshots
13 keep-within: '2w' # keep snapshots from the last 2 weeks