snapshot

A saved copy of some state at one moment, kept so it can be restored later.

In more detail

Snapshots let you go back to, or compare with, the exact state at an earlier moment, and are used for backups, tests and undoing changes. Efficient systems do not copy unchanged data into each snapshot; they point at what already exists.

Examples

onMutate snapshots the cached list; onError restores it.
Git stores each commit as a snapshot of the whole project; unchanged files point at the same blobs.
For virtual machines and cloud instances, snapshots are the forensic image: take one, export it, hash it on export and record it in the custody log.

Related terms

Taught in

References

Certification courses