LibrePortal/configs/backup/backup_retention
librelad 9b32444475 feat(config): per-file icons before the config-section names
Config sections (Basic, Mail, DNS, Firewall, …) rendered as a bare name. Add a
small data-driven icon before each: config files now carry a `# @icon <emoji>`
directive in their header, the config generator surfaces it as the subcategory's
`icon`, and the config editor prepends it to the section <h3> (covers every
render path — regular/master/toggle/domains/catalogs/whitelist — since they all
drop displaySubcategory straight into the heading).

- webui_generate_configs.sh: parse `# @icon` (first 10 lines) → emit "icon".
- config-manager.js: prepend subcategoryData.icon to the section title.
- configs/**: added an @icon to all 23 base config files (backup/general/network/
  security/webui). The live install's config files get the same directive + a
  configs.json regen so existing installs show the icons too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-07-06 22:33:08 +01:00

15 lines
1.2 KiB
Plaintext

# ================================================================================
# Backup Retention - Default retention policy applied at every forget pass.
# @icon 🗓️
# Per-location overrides supported via the Locations edit modal.
#
# Most users should pick a "Backup style" preset on the Schedule page rather
# than editing these directly. Blank values mean "do not enforce this tier".
# ================================================================================
CFG_BACKUP_KEEP_LAST= # Keep Last N - Always keep this many most-recent snapshots
CFG_BACKUP_KEEP_DAILY=30 # Keep Daily - Keep one snapshot per day for this many days
CFG_BACKUP_KEEP_WEEKLY= # Keep Weekly - Keep one snapshot per week for this many weeks
CFG_BACKUP_KEEP_MONTHLY= # Keep Monthly - Keep one snapshot per month for this many months
CFG_BACKUP_KEEP_YEARLY= # Keep Yearly - Keep one snapshot per year for this many years
CFG_BACKUP_PRUNE_AFTER_FORGET=true # Prune After Forget - Reclaim repo space after forgetting snapshots