View Markdown

Snapshots and persistence

Save the state you intend to recover, understand what the snapshot includes, and verify the restored instance.

Decide what must survive

An environment contains several kinds of state: source files, installed software, configuration, and application data. A snapshot may cover some of these while a database or external storage covers others. Read the scope before treating a snapshot as a complete backup.

Save a recovery point

Use a descriptive name and record the source resource. A useful recovery record identifies the saved version and explains when you would restore it.

Restore and inspect

After restoring, verify the files, configuration and application behavior that matter to the task. A successful restore response is not a substitute for checking the application.

Snapshot or volume?

NeedUseful starting point
Recreate an environment at a known stateSnapshot
Keep changing files across process restartsPersistent volume
Query application recordsDatabase
Store exported artifactsObject storage

Practice recovery

In the sandbox lab, create a machine, save a snapshot, remove the machine and restore it. The lab makes the distinction between an active instance and a saved state visible.