Storage 101: Snapshots vs backup | Computer Weekly (2024)

Feature

We go over the basics of snapshots. They are a quick and accessible way of protecting data, but they are not a substitute for backup. So how do you combine the two?

Storage 101: Snapshots vs backup | Computer Weekly (1)

By

Published: 23 Apr 2020

Recently we looked at backup for NAS – but backup isn’t the only form of data protection for NAS. There are also storage-centric forms of protection, such as snapshots and Replication, which offer more rapid recovery than traditional backup.

In this article, we will look at snapshots and to what extent they can be a replacement or an addition to backup. We will also briefly look at replication and see how that fits with snapshots and backup.

Snapshots 101

Fundamentally, a snapshot is a record – comprised of metadata – that indicates the state of blocks and files in a unit of storage. Often, snapshots come as a feature of NAS or SAN storage and are created and held on that storage.

They allow the user to roll back to previously existing versions of a volume, drive, file system, database, etc. So, for example, you can roll back to the state of a unit of storage at any previous snapshot.

Snapshots are like a point-in-time copy or table of contents that shows which blocks and/or files existed and where. In the case of rolling back, the volume or unit of storage in question would be changed to a state that reflected the snapshot, by removal and movement of blocks, etc.

Where blocks have been deleted, these have to be retained, and are added to the snapshot in case they are needed. In such a case, the version rolled back to could be a mixture of metadata from previous snapshots, data retained by those snapshots and whatever counts as a parent copy (ie, before snapshots).

So, snapshots are not backups because they are not copies. They don’t take up much space individually, but their total volume can grow, especially if there are lots of deleted blocks/files, and so suppliers usually limit the amount of snapshots that can be retained.

Snapshots: Benefits and pitfalls

A key benefit of snapshots is that they allow a faster roll-back to a previous point-in-time than from backups.

Another plus is that snapshots allow much more frequent protection than backup. It is possible to set snapshots for, say, once an hour, without affecting production systems, whereas backups are likely to run once a day and outside main production hours because of their impact on resources.

The flipside to being rapidly available comes down to snapshots usually being held locally on the storage device. That means they are vulnerable to any outages that affect that system and they use up (potentially primary) storage capacity.

So, snapshots are best used in conjunction with a backup strategy. Snapshots are good for more frequent protection measured in minutes or hours, while backups are used for daily protection. Snapshot retention periods will usually reflect that, with deletion of snapshots occurring after, say, 48 hours, which allows for one or two backups to have taken place in that period.

Snapshot types

There are two fundamental types of snapshot mechanism: copy-on-write and redirect-on-write.

Copy-on-write

In copy-on-write, when an I/O request seeks to change a storage block, that block is copied first and retained by the snapshot to which it belongs. That keeps everything consistent for that snapshot, which comprises pointers to unchanged blocks and copies of those subsequently changed.

Copy-on-write snapshots save on space because unchanged data is referenced from the original copy (as long as not much has changed). The downside is that performance can be affected because every write request is accompanied by the need to copy out a block for retention by the snapshot.

Redirect-on-write

With redirect-on-write, when new blocks are created, it only requires one write and that is to the snapshot. That means any reference to the current state of data is to the original and the snapshot. When snapshots are deleted, all those differences need to be reconciled back to the parent.

Because new data only exists across potentially multiple snapshots, access to it can become complex and performance can suffer, but less storage volume is required.

There are a few other common snapshot types:

Continuous data protection

Continuous data protection (CDP) is the creation of snapshots as above, but every time a change is made to the unit of storage in question – or at least at a level that is relevant to human users, such as file creation, update or deletion. That means CDP allows for roll-back to any point in time, but it also means a performance hit for more of the time. Where normally snapshots would run at intervals of once an hour, for example, with some performance overhead at those times, CDP creates extra I/O every time something occurs.

Mirroring, clones and replication

Related to snapshots, but entirely different in terms of mechanism, are the various forms of cloning. At its simplest, a clone is exactly as it sounds: an identical copy of a unit of storage. Not an original and snapshots of updated areas, but the whole thing.

This could take the form of one-off cloning of a drive or regular cloning of a volume, drive, etc, by the snapshot utility. Or it could be synchronous or asynchronous mirroring, in which data is written to two physical locations (almost) simultaneously. Here we are talking about replication, which is at the higher end of things in terms of technical and cost considerations.

Replication is a highly effective form of data protection and is used in the most transaction-sensitive verticals for its ability to provide an instantly available failover copy.

But replication can’t replace backups. They have to work together. For example, because replication is near-real time in the way it makes its copy, if corrupted or infected files are replicated, then you need a version to roll back to. Of course, that could be a snapshot, as discussed above, but then they also need underpinning by backups because of their limited lifespan. Also, because replication can be costly, it may be that only certain datasets are replicated, while everything is backed up.

Read more on snapshots

  • Cloud snapshots and backups: You often need more data protection than native cloud services will give. But should you choose backup or snapshots? And what about third-party backup in the cloud?
  • Implement cloud storage snapshots to protect critical data. Storage snapshots act almost like a rewind feature for admins, enabling them to roll back to uncorrupted versions of data. Unfortunately, they aren’t as simple as hitting a button.

Read more on Cloud storage

Storage 101: Snapshots vs backup | Computer Weekly (2024)

FAQs

Storage 101: Snapshots vs backup | Computer Weekly? ›

So, snapshots are best used in conjunction with a backup strategy. Snapshots are good for more frequent protection measured in minutes or hours, while backups are used for daily protection.

Is snapshot better than backup? ›

Unlike backups, snapshots do not create a separate, isolated copy of data, leaving it vulnerable to hardware failures, catastrophic events, or data corruption. Additionally, snapshots often retain limited historical data, making them unsuitable for long-term data retention and compliance purposes.

Which is faster for data recovery a snapshot or a backup tape? ›

Snapshot is quick to save and prompt restore. Backup processes can take a long time to complete, depending on the volume of data.

What is the purpose of taking a snapshot as a backup? ›

A snapshot is a point-in-time copy of data taken from an operating system, software application, or disk. It captures the exact state of the data at a specific moment with all its settings, preserving it as a record to be used as an integral part of the backup and recovery process.

Why snapshot is not a backup? ›

Since snapshots reside on the same array as the source database, they are vulnerable to failures that affect the storage array. That is why a snapshot, even though it is created very quickly, does not constitute a backup of the original data.

What are the disadvantages of snapshot? ›

Snapshot Limitations

Snapshots can affect the virtual machine performance and do not support some disk types or virtual machines configured with bus sharing. Snapshots are useful as short-term solutions for capturing point-in-time virtual machine states and are not appropriate for long-term virtual machine backups.

How much do you actually save with snapshot? ›

You'll get your first Snapshot discount at your first auto policy renewal, which is usually six months after you start the Snapshot program. Snapshot customers who earn a Snapshot discount save an average of $231 per year. Snapshot is intended to help customers save money on car insurance, and most people do.

Is a snapshot a full backup? ›

Unlike a backup, which performs a full copy of your data, a snapshot only copies the settings and metadata required to restore your data in the event of a disruption. You still need to store the source files for your snapshots in a separate location to be able to retrieve them.

Is a snapshot equivalent to a backup? ›

The main difference between snapshots and backups is that the latter is isolated from the mainframe. That means snapshot copies are stored on the original network, unlike backup copies. Snapshots work well for frequent protection measured in minutes or hours while backups are used for regular protection.

Why snapshot is faster than backup? ›

The two are very different techniques and from a performance perspective, a snapshot is created much faster than a backup/restore, but that is because it does not contain any real data when you first create it. Changes to the data pages are written to sparse file only when there is an update on the source database.

Can snapshot replace backup? ›

The main difference between snapshots and backups is that the latter is isolated from the mainframe. That means snapshot copies are stored on the original network, unlike backup copies. Snapshots work well for frequent protection measured in minutes or hours while backups are used for regular protection.

Is it worth it to use snapshot? ›

Whether Progressive Snapshot is worth it depends on your driving habits and if you'd be considered a safe or risky driver. Safe drivers can receive a decent discount when their Progressive policy renews, while those deemed to be riskier drivers can see an increase in car insurance costs.

Does snapshot penalize you? ›

Snapshot tracks your driving habits by using a plug-in device or mobile app. Good drivers can earn a discount with Snapshot, but bad driving increases rates for 20% of drivers. Lots of companies offer the possibility of a bigger discount, and you won't have to worry about your rates going up.

Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6008

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.