Snapshots are not backups!


Userlevel 7
Badge +13

Most of you probably already know or have heard this statement: Snapshots are not backups! 

Just last week a German hosting provider did lose 1500 snapshots because of failing hardware. And who hasn’t experienced some horror stories about (forgotten) VMware snapshots. Because of that I wanted to highlight this with a dedicated blog post. 

What is a snapshot? 

In general a snapshot is a frozen point in time state of a certain system or data. While we're often referring to snapshots in case of virtual machines, there are other variations like storage or file snapshots. 

For virtual machines, snapshots set the virtual disks to read only state and redirect all changes to a different disk file(the details may differ depending on the hypervisor). They can be used for quick rollbacks or during VM backups. Normally those are only created temporarily(or at least the should). 

Storage or file snapshots can be used for versioning and can also be replicated to different systems; those tend to have a longer retention. 

A snapshot is most of the time dependent on the source system/data; it's not a copy. 

What is a backup? 

A backup is similar to a snapshot but this time, it is an independent copy of the source data. This copy should be placed on a different storage with no connection to the source system. With the 3-2-1 rule applied, backups should later on be copied to a different storage media and also brought off-site.

A recovery from a backup should also not be limited in any ways. This means, you should, be able to restore to different hardware or recover single items.

Why is a snapshot not a backup? 

As snapshots are dependent on their source, they're are a bad solution for backups. If you lose your source, you’ll also lose your snapshots (or the ability to roll them back). In addition, virtual machine snapshots cause additional IO overhead while being active and especially during the cleanup process; so they should never be active for a longer time. Forgotten VM snapshots at some point get impossible to delete or cause stuns. 

Backups on the other hand are independent of their source. If the source gets corrupted, deleted or what ever, the backup should still be usable. Backups can be copied to different locations and used for long term retention.

When do you use a snapshot?

While a snapshot itself isn’t a backup, it can complement a backup solution and lower the Recovery Time Objective(RTO).

For virtual machines, they are necessary in order to backup virtual disks. So during an active backup, a snapshot will be temporarily active.

File based snapshots, like Shadow Copies on a Windows Fileserver, can be used be end users for a quick recovery of lost or overwritten files.

And storage snapshots can be created and restored in a few seconds. Those can be a great addition for regular backup job.

At the end you should just never forget, that if everything breaks, a snapshot will probably also be gone. So use them where they make sense, but don’t forget to take a backup.

 

 


16 comments

Userlevel 7
Badge +13

Hm...how did I get this into Kubernetes Corner...😅 Should have been “Blogs and Podcasts”.

Userlevel 7
Badge +20

Great article wrong section as you noted.  Maybe @Kseniya can move it. 😃

Userlevel 7
Badge +20

Great read! Everyone should be forced to learn this when working with virtualisation! 👏

Userlevel 7
Badge +13

Great article @regnor , can I translate it for Italian corner?

Userlevel 7
Badge +17

Oh yes, I am discussing this with every customer and every new customer employee 😎

Many people seem to think a snapshot on the same machine gets them security and the ability to restore everything. Only to compare with the office 365 trash bin…. This are using several companies as “backup solution”, too….

Userlevel 7
Badge +13

Great post!

A snapshot is a snapshot …

But it also depends, some vendors try to sell snapshots as backup. But others do some similar, more sophisticated solution and call it snapshot (https://blocksandfiles.com/2022/04/21/38153/ - just glanced through)

Userlevel 7
Badge +13

@marcofabbri: Of course you can/may 🙂

@JMeixner: Do I sense another blog post? Trash/deleted items is not a backup 🤣

@vNote42: That’s an interesting technology. While the implementation itself can be useful in some cases, I think it’s too dangerous to call it backup. If we start mixing terms and add a footnotes/disclaimers/* to the term “snapshot/backup” which can easily be overlooked, people will get a false view of what they acctually are using. The final goal is to prevent or mitigate data losses, not blaming anyone afterwards because the implementation was wrong or not fully understood.

 

Oh and I’ve just noticed the topic has been move to the right category. Thanks (@Kseniya? 😉)!

Userlevel 7
Badge +17

@marcofabbri: Of course you can/may 🙂

@JMeixner: Do I sense another blog post? Trash/deleted items is not a backup 🤣

@vNote42: That’s an interesting technology. While the implementation itself can be useful in some cases, I think it’s too dangerous to call it backup. If we start mixing terms and add a footnotes/disclaimers/* to the term “snapshot/backup” which can easily be overlooked, people will get a false view of what they acctually are using. The final goal is to prevent or mitigate data losses, not blaming anyone afterwards because the implementation was wrong or not fully understood.

 

Oh and I’ve just noticed the topic has been move to the right category. Thanks (@Kseniya? 😉)!

😎 Perhaps I will write a topic about funny customer ideas ….

And I strongly agree, don’t mix snapshots and backups. 😋

Userlevel 7
Badge +13

@marcofabbri: Of course you can/may 🙂

Thanks, it’s an honor. This is really a great piece.

Userlevel 7
Badge +7

Who is the fool that uses a snapshot as a backup? 😋

 

Userlevel 7
Badge +13

Who is the fool that uses a snapshot as a backup? 😋

 

Unfortunately, too much people...

Userlevel 7
Badge +20

Who is the fool that uses a snapshot as a backup? 😋

 

 

Userlevel 7
Badge +8

Great article ! i have been fighting with developers since 4 years about this snapshot vs backup.

The solution was to have a full vsan cluster crash in dev, really raise awareness...😤

https://kb.vmware.com/s/article/1025279

In dev, snapshot button has been locked. Only allowed for Super Admins. They can trigger Quickbackup/Veeamzip from enterprise manager, vsphere or AWX…

For acceptance and productions, same as dev but access are more restricted snapshot can be used for 24 hours or remove. They can do VeeamZip or Quickbackup too.

Userlevel 7
Badge +9

You will be amazed to know that a lot of companies still do this @Chris.Childerhose

Userlevel 7
Badge +20

You will be amazed to know that a lot of companies still do this @Chris.Childerhose

Oh I am sure there are as you hear about it all the time.  😂

Userlevel 7
Badge +9

You will be amazed to know that a lot of companies still do this @Chris.Childerhose

Oh I am sure there are as you hear about it all the time.  😂

You get to learn a lot in various communities and on the streets of Reddit :-)

Comment