R-1278: the install page says when a backup of an earlier install is kept and links the restore page (HU and EN). Red-proved. Commit only.
gates / gates (push) Successful in 1m33s

This commit is contained in:
2026-10-25 23:32:01 +01:00
parent 7ea942a118
commit fbec5cb499
10 changed files with 1368 additions and 0 deletions
+20
View File
@@ -240,6 +240,26 @@ func (m *Manager) driveOfNamespace(nsRoot string) string {
return nsRoot
}
// KeptBackupsFor (R-1278) counts the backups of an EARLIER install of stack that the box keeps: its set-aside units
// (D47) and the unit „remove — keep backups" left (a removed app's). The install page names them beside a fresh start.
func (m *Manager) KeptBackupsFor(stack string) int {
if m == nil || !validMirrorStackName(stack) {
return 0
}
n := 0
if m.settings != nil {
for _, k := range m.settings.GetKeptCopies() {
if k.Kind == KeptKindUnit && k.Source == stack {
n++
}
}
}
if _, ok := m.RemovedAppUnitFor(stack); ok {
n++
}
return n
}
// SetAsideDirsForApp lists the app's set-aside folders (<root>/backups/set-aside/<stack>) that exist, on every
// namespace root a unit of it can sit on.
func (m *Manager) SetAsideDirsForApp(stack string) []string {