The local whole-guest tier keeps one restore point per day for 3 days: keep-daily instead of keep-last (R-1149, operator D17, unreleased)
gates / gates (push) Successful in 47s
gates / gates (push) Successful in 47s
This commit is contained in:
1 parent
1693da4d1a
commit
1b6e31675b
6 files changed
+153
-11
No files matched your search
@@ -1947,10 +1947,7 @@ func buildLocalAPIServer(cfg config.Config, px *proxmox.Client, store *backup.St
|
||||
var tierRunners []*backup.BackupRunner
|
||||
var tierTargets []string
|
||||
for _, t := range backupTiers {
|
||||
prune := ""
|
||||
if t.KeepLast > 0 {
|
||||
prune = fmt.Sprintf("keep-last=%d", t.KeepLast)
|
||||
}
|
||||
prune := t.PruneSpec() // primary: keep-daily=N (R-1149); an extra tier: keep-last=N; 0 → no prune
|
||||
// Pruning a PBS target is allowed ONLY for an additional tier with an explicit keep_last
|
||||
// (the primary's target AND retention both default, so it could prune the DR by accident).
|
||||
allowPBSPrune := !t.Primary && t.KeepLast > 0
|
||||
@@ -1968,7 +1965,7 @@ func buildLocalAPIServer(cfg config.Config, px *proxmox.Client, store *backup.St
|
||||
Service: r,
|
||||
})
|
||||
logger.Info("backup tier armed", "target", t.TargetID, "cadence", t.Cadence.String(),
|
||||
"keep_last", t.KeepLast, "wait_timeout", t.WaitTimeout.String(),
|
||||
"keep_last", t.KeepLast, "prune", prune, "wait_timeout", t.WaitTimeout.String(),
|
||||
"prune_pbs_allowed", allowPBSPrune, "primary", t.Primary)
|
||||
}
|
||||
// Guest data-drive passthrough (slice 10 P2): a root-CLI runner for the `pct set` bind + chown
|
||||
|
||||
Reference in new issue
Block a user