How to prune with ever-increasing duration?


Is it possible to implement the following prune algorithm somehow?

  1. For the past week, keep daily snapshots.
  2. For the past month, keep weekly snapshots.
  3. For the past 12 months, keep monthly snapshots.

Thank you,

Yes, I don’t see why not. That’s more or less the policy I’m using for some clients.

How to specify the policy is described here: Removing backup snapshots — restic 0.11.0 documentation

Oh, I didn’t realize you could use multiple --keep options simultaneously. Very cool. Thank you!

1 Like