So I ran:
restic forget --group-by host --prune --keep-within 30d --keep-daily 90 --keep-weekly 26 --keep-monthly 12
Today is Sept 1st. 90 days ago was June 3rd.
But for some reason got:
repository 24344e18 opened successfully, password is correct
Applying Policy: keep the last 90 daily, 26 weekly, 12 monthly snapshots and all snapshots within 30d of the newest
keep 33 snapshots:
ID Time Host Tags Reasons Paths
---------------------------------------------------------------------------------------------------------------------
a5ca6389 2019-05-28 07:11:54 akrabu-macbook-air.local daily snapshot /Applications
/Library
/Users/akrabu
/Volumes/Drobo/!To Sort
/Volumes/Drobo/Pictures
/Volumes/Drobo/Text
/Volumes/Drobo/Utils
da6ce5ae 2019-05-29 19:59:59 akrabu-macbook-air.local daily snapshot /Applications
monthly snapshot /Library
/Users/akrabu
/Volumes/Drobo/!To Sort
/Volumes/Drobo/Pictures
/Volumes/Drobo/Text
/Volumes/Drobo/Utils
01b43163 2019-06-01 13:11:39 akrabu-macbook-air.local daily snapshot /Applications
weekly snapshot /Library
/Users/akrabu
/Volumes/Drobo/!To Sort
/Volumes/Drobo/Pictures
/Volumes/Drobo/Text
/Volumes/Drobo/Utils
<------------------------truncated------------------------>
I don’t understand why the first one was kept. It’s not the last monthly, nor the last weekly, nor in the last 90 days, nor in the last 30 days. It says “daily snapshot” though. I’m confused. Does --keep-daily
mean keep the last 90 days worth of backups, not the last backup for the day for the last 90 days, as I interpreted it?