I have a little issue with custom backup retention policy
I have configured it as follow: 92D:1D,29W:1W,25M:1M
So I will have one backup per day for the past 92 days, one backup per week for the last six months and on one backup per month for a little bit more than two years.
The point is that duplicati do not keep a copy for each days:
On the screen shots you can see that duplicati did not kept a version for the 23, 17, 15, 11, 3 of January when a backup has been on these days. It seems that it kept a backup for each two days instead of a backup for each day.
This seems likely. It’s definitely the biggest “issue” with the retention policy. It’s super hard to define a perfect fuzzy border making the backups fit within the policy.
It’s also possible the backup just wasn’t run that day, but it’s hard to tell without knowing the entire history.
I was assuming the “Result” items (shown below the restore list) were from the log show run times.
Most of my backups are in the early AM so pretty much always end on the same day as they start so I’ve not really noticed the described issue.
HOWEVER - there have been a few times I’ve done manual test backups in the evening only to see them disappear the next day. But since they were test backups I never cared enough to confirm my theory.
Every backup listed as deleted incorrectly was less than 1 day from the previous one, thus was deleted according to the 1 day retention. 1 day is 24 hours or 1440 minutes or 86400 seconds. You can give the interval in those units with h m s respectively. Everything is converted to seconds. It’s not calendar time.
I think it’s backup-to-backup time distance, with backups known by the usual time on Restore dropdown. Deletions of any sort happen after the backup, but the backup just made is exempt from some deletions.
Actually, now that I think about it, it’s lower case.
e.g.
30m:U,1h:600s,3h:15m,1D:1h,1W:1D,1M:1W,1Y:1M,U:1Y
Should showcase the options, although it’s obviously overly complicated to show many options.
Within the last 30 mins keep every backup.
Within the last hour keep one backup for every 600 seconds.
Within the last 3 hours keep one backup for every 15 minutes.
Within the last day keep one backup for every hour.
Within the last week keep one backup for every day.
Within the last month keep one backup for every week.
Within the last year keep one backup for every month.
For every year keep one backup.
As pointed out previously, it’s not very fuzzy, so it is time between the backups.
E.g. 3 backups in 3 hours may become 2 backups if the first two occur 30 minutes apart and the policy keeps one for every 60 minutes.