Reference desk
Snapshot retention planner
Choose how often snapshots are taken and how many hourly, daily, weekly and monthly ones to keep. The planner lists the snapshots each rule keeps, counts each one once, and shows how far back the oldest reaches. Every figure is an estimate from a simple model, not a reading from DSM.
How the estimate is worked out
Each rule keeps the latest snapshot taken in each of its last N periods, counting the current period as one. The planner builds the list of snapshots for every rule, then counts them. The calculation hour is the start of the current UTC hour, and only snapshots taken at or before it count, so the current hour holds a snapshot only if one is scheduled exactly on that hour:
- Kept at steady state = the number of unique snapshots in the four lists (a snapshot picked by two rules is stored once).
- Selections = how many snapshots each rule picks. The total is the sum of the four rules. A snapshot picked by more than one rule is a repeat selection and is stored once, so unique snapshots = selections minus repeat selections.
- Reach = the calculation hour minus the time of the oldest kept snapshot. The current period counts as one, so the reach depends on where the calculation hour falls inside the active periods: it is not simply N times the period length.
Assumptions
- The schedule choices (every 1, 2, 3, 4, 6, 8, 12 or 24 hours) and the largest counts (720 hourly, 366 daily, 260 weekly and 240 monthly periods) are settings of this planner, not DSM limits. Snapshots run on the hour, lined up with midnight UTC. With a 6-hour schedule, for example, they run at 00:00, 06:00, 12:00 and 18:00 UTC. Hours convert to days at 24 hours and days to weeks at 7 days (ECMAScript time constants).
- Hours and days are UTC. Weeks run Monday to Sunday, as in ISO 8601 (NASA's explanation). Months are calendar months, leap days included. Daylight-saving changes are ignored.
- An hour, day, week or month with no scheduled snapshot in it keeps nothing, so a rule can keep fewer snapshots than you asked for.
- "Steady state" means the schedule has run for longer than the reach, every scheduled snapshot was taken, and none was deleted or locked by hand.
- The count can change when one or more calendar periods roll over. The figures are worked out for the current UTC hour on your device's clock, when the page loads, when you change the plan and at each new hour.
- It does not estimate storage. The space snapshots use depends on how much data changes between them.
What it does not tell you
DSM's Snapshot Replication package has its own retention settings and its own limits on how many snapshots a shared folder or LUN can hold. How a given DSM version applies and counts its rules can differ from this model, so check Synology's documentation for your version before relying on a figure. Local snapshots stay on the same volume as the data, so they do not replace a backup on another device. Synology documents replication to another server as a separate feature.
References
- Snapshot Replication Technical Specifications (DSM 7.4), Synology Inc. Vendor settings, limits and remote replication.
- What is the Smart Retention policy in Snapshot Replication?, Synology Knowledge Center. The latest-snapshot-per-period and deduplication rules.
- International Standard Date and Time Notation, NASA. Weeks run Monday to Sunday.
- Time-related Constants, ECMAScript Language Specification, Ecma International (TC39). Hour and day conversions.