Why a VPS snapshot is not enough for recovery

What must return after a failure, how to combine data backups, and why RPO/RTO objectives differ from the results of a recovery exercise.

Paper, a transparent plate, and a metal base beside an assembled module: a metaphor for recovering a product from several parts.
Paper, a transparent plate, and a metal base beside an assembled module: a metaphor for recovering a product from several parts.

The database, images, configuration, and access permissions follow different recovery rules.

A server snapshot looks like a convincing answer to the backup question: there is a disk state that can be restored. But a product may depend on data outside that disk, permissions with their own lifecycle, and consistency across several different parts.

For an author's journal, more than the machine needs to come back. Readers need the correct text and images, editors need to work, and the publication schedule needs to preserve the appropriate state of articles. Recovery should therefore be planned around what needs to be restored.

What exactly needs to come back

Application code, editorial data, and original images serve different purposes. Code can be reproduced from a defined revision. Texts and relationships need an appropriate data backup. Images may live in external storage that is not included in the VPS snapshot.

Configuration connects these parts to a particular environment. Permissions authorize the required actions. If an account was revoked after a compromise, restoring an old snapshot must not silently bring back an unwanted permission.

Derived data also needs classification. Some caches or search representations can be rebuilt from primary records. Other state needs a separate preservation decision. The word “cache” or “index” alone does not determine the entire recovery policy.

A hypothetical map of the journal

Part of the productRecovery question
Code and assetsCan a specific accepted revision be reproduced?
Texts and editorial relationshipsTo which consistent point will the data return?
Original imagesAre they available independently of the lost server?
Derived representationsWhat is restored from a backup, and what is rebuilt?
Configuration and permissionsCan the required operation return without restoring revoked privileges?

A snapshot can be a useful part of such a plan. Its contents, consistency, and dependencies need to be established. If a backup contains only one part of the required result, the existence of a file does not resolve the remaining questions.

A consistent state matters more than a collection of files

Suppose the database contains an article referencing a new image. The database backup was taken after the image was added, while the saved object set predates it. Separate backups exist, but their combination does not produce the expected page.

A similar question arises with the publication schedule. We need to establish which articles have already been published, which are still scheduled, and how the system behaves after restoring an older state. Repeating an external delivery has its own boundary: a local backup does not establish that a message was not sent before the failure.

For a database, returning to a particular point may require a base backup and the necessary chain of change logs. The MySQL documentation describes such recovery using binary logs. A backup file's name alone does not provide this capability.

Set the objective before measuring the result

Recovery has two important objectives. RPO defines acceptable data loss in terms of time. RTO defines acceptable downtime. They are set before testing, according to the product's needs. The Google Cloud disaster recovery planning guide explains this distinction.

The result of an exercise is a different measurement: how much data was actually lost in the defined scenario, and how long it took to restore a working service. The check shows whether the objectives are met. It does not create the objectives retrospectively.

Imagine that an owner permits the loss of no more than 15 minutes of data and requires recovery within two hours. A training exercise finds that the restored state is an hour old and the work takes three hours. The objectives and measured result differ; the mechanism needs to change, or the requirements need a deliberate review.

The exercise needs separation from production data

A recovery check needs a controlled environment, defined backups, and an explicit way to assess the result. Some scenarios require a separate isolated recovery target, rather than just a new name inside the production system.

Reading a plan is a review of documentation. Performing recovery changes state in the selected environment. These actions need to remain distinct so that a planned exercise is not presented as an already established ability to restore service.

The practical task is to list what needs to return, set objectives, and check the entire user-facing result. A restored machine is one part of that result.

  1. Observability When a server is truly ready to launch
  2. Databases Four database access roles for one product
  3. Operations & Security Recovering VPS access when SSH stops working
  4. Operations & Security Encrypted E-01 backup and a local recovery drill
  5. Operations & Security CLI backup and recovery: from 27 files to a working build

A project by the author · Weather Solution200

After reading, a look outside.

Temperature, rain and wind in your city. Check the forecast and plan the hours ahead.

Check the forecast
Next article