1

What is the difference between following restore options:

A. Full backup and applying to it subsequent log backups.

B. Snapshot backup and applying to it subsequent log backups.

Note: this is not database snapshot but snapshot backup (for example: a full backup of type snapshot performed by VSS writer)

variable
  • 3,590
  • 4
  • 37
  • 100

2 Answers2

3

A Snapshot is not really a type of database backup in SQL Server. Rather it is a separate feature to quickly restore the database to a point in time place as opposed to using a Full Backup. You can read about the differences and how Snapshots are used in this article.

But the important thing to note is you wouldn't be able to restore Transaction Log Backups after restoring directly from a Snapshot alone. Transaction Log Backups can only be restored after a base Full Backup is restored first, that is part of the same backup chain.

There is a third type of backup in SQL Server called Differential Backups which are used to improve recovery time of larger databases. They do so by backing up all changes that have occurred since the last Full or Differential Backup. Typically they are less heavy of an operation than a Full Backup but more heavy than Transaction Log Backups, so they can be ran a few times throughout the day - such as on an hourly schedule (or whatever fits the needs of the database being backed up). This results in less Transaction Log Backups files that are needed to be restored, and therefore a quicker recovery time.

But please note, even when using Differential Backups, a base Full Backup is still always needed to be restored first. This how backups work in SQL Server, the base Full Backup is always the starting point before restoring any other types of backups. So only your option A is valid, option B wouldn't work.

J.D.
  • 40,776
  • 12
  • 62
  • 141
1

Let's have a look at your options:

Full backup and applying to it subsequent log backups.

This option allows you to restore the database to any point-in-time, provided you have an unbroken chain of TLOG backups.

Advantage: With this option you have a physical copy of the database backup that can be restored to other servers. The backup is not linked to the disk/volume it was taken from.

Snapshot backup and applying to it subsequent log backups.

This option allows you to bring a whole system (when snapshotting the server) back online in a matter of seconds or to restore a snapshot backup and to apply additonal TLOG backups.

The requestor can issue a restore specifying the SetAdditionalRestores(true) option. This option indicates that the requestor is going to follow up with more rollforward restores (such as log restore, differential restore etc.). This instructs SQL Server not to perform the recovery step at the end of the restore operation.

A snapshot of a database is copy of the disk data at a given point-in-time:

Component-based backups are preferred and recommended with the SQL writer, since the application (VSS backup application) will explicitly select the databases from the metadata that is returned from the SQL writer. The snapshot set should include all the volumes necessary to back up those databases. The VSS infrastructure does not automatically add the volumes that are required for the selected set of databases. All backing volumes should be included in the volume snapshot set. It is the responsibility of the backup application to make sure that all backing volumes are included in the snapshot set. The SQL writer will detect torn databases (with backing volumes outside the snapshot set) and fail the backup.

Reference: SQL Server Backup Applications - Volume Shadow Copy Service (VSS) and SQL Writer (Microsoft | SQL Docs)

Disadvantage: The snapshot backup is related to the disk/volume it was taken from.

You might be able to create a database backup from the VEEAM snapshot, but I don't know the product that well.

John K. N.
  • 18,854
  • 14
  • 56
  • 117