Star

Created With

linkForget/Prune Policies

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

.autorestic.yml
1linklocations:

2link etc:

3link from: /etc

4link to: local

5link options:

6link forget:

7link keep-last: 5 # always keep at least 5 snapshots

8link keep-hourly: 3 # keep 3 last hourly snapshots

9link keep-daily: 4 # keep 4 last daily snapshots

10link keep-weekly: 1 # keep 1 last weekly snapshots

11link keep-monthly: 12 # keep 12 last monthly snapshots

12link keep-yearly: 7 # keep 7 last yearly snapshots

13link keep-within: '2w' # keep snapshots from the last 2 weeks

Forget/Prune Policies

Home Quick Start Installation Configuration Upgrade

Locationschevron_right

Overview Hooks

Optionschevron_right

Cron Docker Volumes

Backendchevron_right
CLIchevron_right

Examples QA Community Contributors