Default Retention Policy

Hi there,

I was wondering if restic had a default retention policy and if restic would do a cleanup or delete on any of the snapshots unless they are explicitly forgotten or pruneed.

I have read the documentation around the forget command, but it wasn’t entirely clear on if the policy would be applied after the fact periodically on every backup thereafter or if it just does the forget when the command is ran.

Thanks in advance!

Nope, not at all.

You’ll have to trigger forget and prune yourself, it won’t happen automatically.

Additionally, if you specify a forget policy that would delete all snapshots in a particular group, then the command will fail as a safeguard against accidentally deleting everything.

Got it, thanks for the answers!