“Snapshot” in English means “shot” or “instant photo”. Snapshot is a kind of photograph of a virtual machine (VM), a cast of its specific state. A virtual machine can be used for various kinds of experiments, or changes can be made to it, which then needs to be quickly rolled back. It is in order not to suffer every time the restoration of the previous state of the VM and there are snapshots that return the VM to its original state. Snapshots are not such a simple operation, in any case, it should be done according to the rules, which we will tell about today.

What is snapshot?
Snapshot saves the state of the virtual machine and data on it at a certain point in time.
- The state refers to the energy resources of the virtual machine (for example, on, off, conditional state);
- The data includes all virtual machine files, including disks, memory, and other devices, such as virtual network cards.
What snapshot is not exactly is a
back-up . Snapshot is just a log of changes to the original virtual disk, so you should not rely on it as an immediate backup process.
Best practics
To get the most out of snapshots, you need to follow a few rules that allow you to use snapshots to the maximum and prevent problems from occurring.
')
1) Snapshot - not back-up .
Use separate backup tools. Take snapshots, make changes to the virtual machine and delete snapshots as soon as its correct state is confirmed.
2) Snapshots form chains or trees.
VMware recommends doing only 2-3 snapshots in one chain:
a. A larger number of snapshots or large snapshots can cause a decrease in the performance of the virtual machine and host.
b. Creating a large snapshot file can fill up the available storage space by disabling all virtual machines in this manner until adjustments are made. In other words, snapshot on every single host can affect all virtual machines using this storage device.

c. The snapshot file may be damaged.
d. The size of the snapshot disk has a direct impact on the length of time it takes to remove the snapshot related to this virtual machine.
Snapshot trees on Windows and Linux3) Do not make snapshots of virtual machine memory:
a. The length of time it takes for the ESX host to write the memory to disk correlates with the amount of memory the virtual machine is configured to use. This can increase the time to complete the operation, which in turn can slow down the performance of the virtual machine.
b. If there is no urgent need to return the virtual machine to a specific memory state, disable the “Memory” option. A memory condition may rarely be required.
4) Use more than one snapshot for a period of 24–72 hours.
Although 2-3 days is the recommended period, sometimes snapshots are stored for 5 days and then automatically deleted:
a. This prevents snapshots from growing to such a large size that can cause problems when deleting it from the virtual machine disk.
b. Take a snapshot and delete it immediately after you make the necessary adjustments.
c. Be careful with snapshots of highly-loaded virtual machines, such as database servers and mail servers. Such snapshots can quickly grow in size, filling up storage space. Delete snapshots from virtual machines as soon as they are no longer necessary.
5) Virtual machines with multiple disks:
a. Snapshot can affect a child or backup disk: the more operations are performed with the disk, the more it becomes.
b. Requirements for the free space of the child disk supplement the requirements for the parent disk on which it depends.
c. A child disk can grow to such a size that it fills all the storage space.
d. There is a “No Snapshots” rule for additional disks of 100 Gb size and more, since there is a possibility of filling the data storage and stopping all virtual machines that use the same storage.
e. Additional disks larger than 100 GB are considered independent in size - this prevents the transition of the snapshot from the parent disk to the child.

Instead of conclusion
Snapshot allows you to capture the state of the virtual machine at a specific point in time. Snapshots are useful if you want to return to the same state of the virtual machine without having to create new ones.
Snapshot carries the following information:
- Virtual machine settings;
- The state of the virtual machine disks;
- The contents of the virtual machine memory (only when absolutely necessary).
Should take into account the special requirements for the virtual machine, if any. These best practices are designed to ensure that your virtual machine is as productive as possible when creating snapshots.