How will rclone decide if I have two rules (i.e. --keep-daily and --keep-weekly) and the “smaller” unit (in this case daily) is less than the next higher unit (weekly).
So for example: keep three daily backups and three weekly.
Which of those daily backups will become the one for the week?
The documentation says only keep the last one for that ….
So does that mean that sundays backup will be kept in this case?
So that means if I start new, I would have backups from four following days (sunday for the weekly and monday, tuesday and wednesday from the daily) on next wednesday?
The easiest way to see how restic behaves would be to run forget --dry-run .... restic will then print a list with all snapshots along with the reason due to which policy a snapshot is kept.
In your first example restic will keep enough backups to have three backups that count as daily backups along with three backups that count as weekly. One snapshot can both serve as daily and weekly snapshot at the same time.
With backups on Sunday (Week 1) and Monday, Tuesday and Wednesday (Week 2) restic would keep all of them:
The backup from Monday gets removed as only up to 3 daily snapshots are kept and as that snapshot is also no weekly snapshot. Also note that the weekly label has moved to Thursday as it is the last snapshot in Week 2.