Clarify Borg retention semantics in the Job Wizard
Summary
The Job Wizard currently labels the four retention fields as "Keep daily", "Keep weekly", "Keep monthly", and "Keep yearly" without explaining Borg's period-based prune semantics. Users can reasonably interpret a value such as 20 under "Keep daily" as keeping 20 archives per day. Borg instead keeps at most one qualifying archive for each daily period until the requested number of periods is covered.
This is especially surprising because Borg Backup UI runs prune after every successful backup. If two backups are created on the same day, the older archive is not guaranteed to remain available merely because "Keep daily" is set to a large number.
The wizard and user documentation must explain the effective behavior before a job is saved.
Current behavior
The scriptless wizard runner performs:
borg create -> borg prune -> borg compact -> borg check
Prune is scoped to the current job's archive prefix and currently receives:
--keep-daily
--keep-weekly
--keep-monthly
--keep-yearly
Important Borg semantics that are not visible in the wizard:
- A count specifies the number of time periods, not the number of archives per period.
- A daily rule keeps at most one qualifying archive per day.
- Weekly, monthly, and yearly rules work the same way for their respective periods.
- Multiple retention rules can overlap; an archive kept by any rule survives.
- A value of
0means that the respective rule keeps no archive. It does not mean unlimited retention. - Borg generally selects the newest archive in a matching time period.
Required UX changes
- Add a concise explanation at the beginning of the Retention step in German and English.
- Replace or supplement the field labels so the period-based meaning is clear, for example "Daily restore points (one per day)".
- Add field-level help for daily, weekly, monthly, and yearly values.
- Show a concrete example: two backups at 08:00 and 08:30 on the same day do not become two daily restore points; the newer qualifying archive normally represents that day.
- Explain that prune runs automatically after each successful backup and may remove archives immediately according to the policy.
- State clearly that
0disables only that retention tier and does not mean "keep everything". - Reject the configuration when all configured tiers are
0; at least one retention value must be greater than zero. - Link the Retention step to the corresponding section in both user manuals.
- Keep terminology and examples aligned across the wizard, repository maintenance confirmation, integrated help, and both manuals.
The functional addition of more retention tiers and an explicit keep-all/disable-prune mode is tracked separately.
Acceptance criteria
- A user can understand from the Retention step that
daily = 20means up to one daily restore point for 20 daily periods, not 20 archives per day. - The same explanation is available in German and English.
- The UI explains the effect of
0without presenting it as unlimited retention. - An all-zero policy cannot be saved or reach Borg prune; at least one retention tier must be greater than zero.
- The automatic prune timing is visible before the job is saved.
- User manuals and integrated help contain the same semantics and at least one multi-backup-per-day example.
- Focused UI/i18n tests cover the new labels, help text, and warning.
User impact
This prevents accidental archive removal caused by a plausible but incorrect interpretation of the current labels.
Release note
Yes. This is a user-visible safety and documentation improvement.