refactor(config): rename backup subcategory file Advanced -> Engine
Drive the section title from the filename instead of the JS display-override added earlier: rename configs/backup/backup_advanced -> backup_engine, update the category SUBCATEGORY_ORDER and the file's header comment, and revert the formatSubcategoryName override. The CFG_BACKUP_* keys are unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
4078ad5092
commit
ba6b30c425
@ -2,4 +2,4 @@ TITLE=Backup
|
|||||||
DESCRIPTION=Backup schedules, retention, and engine settings
|
DESCRIPTION=Backup schedules, retention, and engine settings
|
||||||
ICON=backup
|
ICON=backup
|
||||||
ORDER=3
|
ORDER=3
|
||||||
SUBCATEGORY_ORDER=backup_general,backup_retention,backup_advanced
|
SUBCATEGORY_ORDER=backup_general,backup_retention,backup_engine
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# ================================================================================
|
# ================================================================================
|
||||||
# Backup Advanced - **ADVANCED** Engine-level knobs most users won't need to touch
|
# Backup Engine - **ADVANCED** Engine-level knobs most users won't need to touch
|
||||||
# ================================================================================
|
# ================================================================================
|
||||||
CFG_BACKUP_ENGINE=restic # Default Backup Engine - Fallback engine for new locations (each location can override) [restic:restic|borg:BorgBackup|kopia:Kopia]
|
CFG_BACKUP_ENGINE=restic # Default Backup Engine - Fallback engine for new locations (each location can override) [restic:restic|borg:BorgBackup|kopia:Kopia]
|
||||||
CFG_BACKUP_STRATEGY=stop-snapshot-start # Backup Strategy - How containers are quiesced before snapshotting [stop-snapshot-start:Stop → snapshot → start (safe default)|pause-snapshot-unpause:Pause → snapshot → unpause (less downtime)|live:Live — snapshot while running (only with DB dump hooks)]
|
CFG_BACKUP_STRATEGY=stop-snapshot-start # Backup Strategy - How containers are quiesced before snapshotting [stop-snapshot-start:Stop → snapshot → start (safe default)|pause-snapshot-unpause:Pause → snapshot → unpause (less downtime)|live:Live — snapshot while running (only with DB dump hooks)]
|
||||||
@ -5,13 +5,6 @@ class ConfigUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
formatSubcategoryName(subcategoryName) {
|
formatSubcategoryName(subcategoryName) {
|
||||||
// Display-name overrides where the derived title isn't specific enough.
|
|
||||||
// The underlying file/key names (e.g. backup_advanced, CFG_BACKUP_*) are
|
|
||||||
// untouched, so saved values are unaffected.
|
|
||||||
const overrides = {
|
|
||||||
backup_advanced: 'Engine'
|
|
||||||
};
|
|
||||||
if (overrides[subcategoryName]) return overrides[subcategoryName];
|
|
||||||
return subcategoryName.replace(/_/g, ' ').replace(/\b\w/g, function(l) { return l.toUpperCase(); });
|
return subcategoryName.replace(/_/g, ' ').replace(/\b\w/g, function(l) { return l.toUpperCase(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user