proxmox-backup/docs/prune-simulator
Fiona Ebner e0e644f119 fix #6069: prune simulator: allow values specifying both range and step size
The prune schedule simulator returned "X/Y is not an integer" error
for a schedule that uses a `start..end` hour range combined with a
`/`-separated time step-gap, while that works out fine for actual
prune jobs in PBS.

Previously, a schedule like `5..23/3` was mistakenly interpreted as
hour-start = `5`, hour-end = `23/3`, hour-step = `1`, resulting in
above parser error for hour-end. By splitting the right hand side on
`/` to extract the step and normalizing that we correctly get
hour-start = `5`, hour-end = `23`, hour-step = `3`.

Short reminder: hours and minutes part are treated as separate and can
both be declared as range, step or range-step, so `5..23/3:15` does
not mean the step size is 3:15 (i.e. 3.25 hours or 195 minutes) but
rather 3 hours step size and each resulting interval happens on the
15 minute of that hour.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [TL: add context to commit message partially copied from bug report
  and add a short reminder how these intervals work, can be confusing]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-02-10 15:34:39 +01:00
..
clear-trigger.png prune sim: make numberfields more similar to PBS's 2020-11-19 09:47:51 +01:00
documentation.html docs: clarify prune settings slightly more 2024-02-22 08:59:30 +01:00
index.html docs: exand PBS to Proxmox Backup (Server) 2023-03-28 14:18:48 +02:00
prune-simulator_source.js fix #6069: prune simulator: allow values specifying both range and step size 2025-02-10 15:34:39 +01:00