Estimating a backup restore window from a timed sample

Estimate a full backup restore from measured sample throughput, with worked transfer, decryption, rebuild and user verification times against an RTO.

Download Restore window estimate

Editable restore window estimate with worked cases and space for observations.

Last updated

In short

  • Use logical and transferred bytes consistently.
  • Time preparation and validation as well as copying.
  • Count overlapping work only once.

Define what the clock has to cover

Start the recovery clock at the event specified in the service objective. End it when an authorized user can complete the agreed business task. Locate the backup, retrieve keys, prepare a clean destination and bring the application back into service during the timed exercise. A stopwatch started after storage is mounted describes a narrower operation than a four-hour recovery objective measured from loss of service.

Choose a sample that reflects both large files and many small objects. Record encrypted bytes actually transferred, logical bytes restored, file count, target disk type, network path, concurrency and cache state. Reuse the same units throughout. If the sample was compressed to half its logical size, dividing uncompressed database size by measured compressed network throughput will double the estimated transfer time.

Worked phase Illustrative input Estimated duration
Prepare and authorize The recovery lead allows 25 minutes to provision the destination, obtain credentials and select the approved snapshot. 25 minutes fixed for this example. Replace the allowance with elapsed time from a witnessed exercise.
Transfer A 60 GiB encrypted sample takes 20 minutes to transfer. The complete encrypted set is 360 GiB over the same path. Effective throughput is 3 GiB per minute. At the sampled rate the transfer alone takes 120 minutes.
Decrypt and materialize A separate offline phase processes the full equivalent of 360 GiB at an assumed 6 GiB per minute. Allow 60 minutes only if this work follows transfer. If decryption occurred inside the measured restore, use that integrated rate and omit this extra phase.
Rebuild and verify Allow 35 minutes for database replay and indexes, followed by 20 minutes for login, a read and a validated write. The serial total is 260 minutes, or four hours and twenty minutes. This scenario misses a four-hour objective by twenty minutes before any contingency.

Test which assumption changes the decision

If effective transfer falls to 2 GiB per minute, the transfer becomes 180 minutes and the total reaches 320 minutes. The other serial phases already take 260 minutes, so even instant decryption misses the four-hour objective by 20 minutes. Conversely, pipelining transfer and decryption can shorten the critical path, but only a timed end-to-end run can establish how contention affects disks and CPU. Keep the illustrative rates separate from your measured results.

PostgreSQL recovery may require replay after a base backup is restored. Time that replay with a representative backlog and the intended recovery target. For file-level recovery, restic’s restore workflow lets you select a snapshot and destination. Verify that the chosen sample exercises the same repository, cold access and metadata operations expected in an incident. PostgreSQL continuous archiving restic restore documentation

Report a range covering the slowest credible path, a named owner for each fixed delay and the date of the last full rehearsal. If the deadline remains out of reach, identify the phase that consumes the margin and repeat the experiment after changing it.

Use the full rehearsal to calibrate the estimate. Record actual time for each phase beside its forecast and carry the largest unexplained difference into the next exercise. A smaller sample dominated by a few large files may repeatedly understate the time needed to create directories and set permissions.

Sources and further reading

Estimate our restore window

Review sample measurements against the application's recovery deadline.

Compare plans and prices, or write to us with a question this page leaves open.