I am wanting to do the following pruning schedule:
- Anything older than a year: delete
- Anything between 6m-1y: keep one per month
- Don’t prune anything between 3m-6m
- Anything older than 1m: keep one per week
- Keep one backup per day for up to a month (backups are on a daily schedule, so there won’t be more than one a day)
The reason I am wanting to keep everything between 3m-6m is I plan on using S3 object lifecycles to send any backups 3m+ to glacier instant retrieval (GIR). GIR charges for every object up to 90 days. So if I do any pruning in the first 90 days of sending backups to GIR, I have to pay for that storage anyway.
Would the following corresponding rules do what I expect it to?
- -keep 0:366
- -keep 30:180
- no prune rule to keep everything
- -keep 7:30
- no prune rule to keep everything up to a month
I mostly want to make sure that at 3 months when I move things to GIR, no pruning happens to backups between 3 months and 6 months old.