Hi, Happy new year all.
I have a question about the forget
command, which is likely me failing to understand it properly.
I use the following command to trim a repository.
restic forget --host <hostname> -g host,tag -n -y 2 -w 6 -m 6 -l 3
(I group by host/tag because each backup type is tagged. Path is irellevant for this particular backup schedule)
Applying Policy: keep 3 latest, 6 weekly, 6 monthly, 2 yearly snapshots
keep 14 snapshots:
ID Time Host Tags Reasons Paths
---------------------------------------------------------------------------------
02e6d523 2023-06-30 22:39:11 <hostname> domain monthly snapshot <path>
fc2b3df3 2023-07-31 22:56:07 <hostname> domain monthly snapshot <path>
8eda28d3 2023-08-31 22:09:19 <hostname> domain monthly snapshot <path>
79f7e16f 2023-09-30 22:05:38 <hostname> domain monthly snapshot <path>
07c2ed95 2023-10-31 18:58:50 <hostname> domain monthly snapshot <path>
e891aba4 2023-11-26 22:00:00 <hostname> domain weekly snapshot <path>
0fa5874b 2023-11-30 22:01:33 <hostname> domain monthly snapshot <path>
c3bac093 2023-12-03 22:40:33 <hostname> domain weekly snapshot <path>
96fce5ea 2023-12-10 22:32:00 <hostname> domain weekly snapshot <path>
e93e023c 2023-12-12 22:14:17 <hostname> domain weekly snapshot <path>
7ab0425a 2023-12-31 22:45:57 <hostname> domain yearly snapshot <path>
c9839b9c 2024-01-01 02:45:57 <hostname> domain last snapshot <path>
57bc7a44 2024-01-01 06:12:01 <hostname> domain last snapshot <path>
30f95edc 2024-01-01 10:12:01 <hostname> domain last snapshot <path>
weekly snapshot <path>
monthly snapshot
yearly snapshot
---------------------------------------------------------------------------------
14 snapshots
As far as I can tell, yesterday (as in 31st) I had a yearly snapshot for 2022, and another for 2023.
Today (as in the 1st), yearly backups are pretty much the last snapshot from yesterday and the first from today.
Does this sound right? I’m fairly sure it is, but it feels wrong. I feel like the yearly snapshot should be more like the 1st of jan 2023, and the 1st of jan 2024.
An I doing this wrong?
Thanks