VSS application backup and restore

What is VSS application backup?

The Microsoft Volume Shadow Copy Service or VSS is a storage management framework designed for Windows to create point-in-time copies or snapshots of drives where files are in use. In summary, VSS works as follows:

  1. BackupAssist sends a request to VSS to perform a snapshot of the selected disk volumes
  2. VSS communicates with running applications to complete existing transactions and halt new ones
  3. VSS takes a snapshot of the selected drive volumes
  4. Once complete, VSS communicates with running applications to resume normal operations
  5. BackupAssist then backs up the snapshot created, where no open files are present
  6. Once the backup of the snapshot completes, VSS removes the snapshot from the system.

In previous versions of BackupAssist, it was possible to back up locally* running VSS applications, but it was a manual process that required you to select the relevant files associated with each application. BackupAssist v6 now includes fully integrated support for local VSS application backup and restore, allowing you to select entire applications or individual components (e.g. specific storage groups in Exchange Server or specific database in SQL Server) to back up. Microsoft applications, such as Exchange Server, SQL Server, and Hyper-V are all fully supported as well as any VSS-aware application that uses standard VSS backup and restore methods.

*BackupAssist cannot be used to back up VSS applications running on remote machines.

Backing up VSS applications

Complete the following steps to configure a BackupAssist job to back up locally running VSS applications:

  1. Launch BackupAssist and either choose an existing File Replication, Zip, Rsync or Windows Imaging job to edit from the Edit menu, or create a new job by going to File > New backup job.
  2. When creating a new job, you can choose VSS applications to back up during the Files and folders step.
    • Note: locally installed VSS applications will be automatically detected and listed. BackupAssist cannot be used to back up VSS applications running on remote machines. If a locally running application is not listed, try re-starting the application's service and then click the Refresh button in BackupAssist.

    Imaging jobs (Server 2008 and REV / rdx drive jobs on Server 2008 R2)

    For Imaging jobs running on Windows Server 2008 or jobs to a REV or rdx drive on Windows Server 2008 R2, VSS applications are backed up as part of a full volume snapshot. If you choose a VSS application to back up, the volumes that must be selected for the application to be backed up successfully will be listed in red. Click the Select required volumes button if a required volume is not included in your selections.
    Volumes required for backup

    File Replication, Zip, Rsync and Imaging jobs

    Select either entire VSS applications or drill down and choose individual components:
    Selecting VSS application components
  3. If you are editing an existing job navigate to Volume selection from the left menu for a Windows Imaging job and Files and folders from the left menu for a Zip or File Replication job.
    • Note: if you select VSS applications in the Files and folders tab for a Zip, File Replication or Rsync job we recommend disabling the Enable VSS writers option in the Open files tab. If the VSS writers option is enabled VSS will contact all applications before and after a backup, which can be slow and may cause the VSS application to register that a backup has been completed when it has not.
      Vss writer disable

Restoring VSS applications

Complete the following steps to restore a VSS application from a BackupAssist backup:

  1. In BackupAssist, click Restore in the top navigation bar and choose BackupAssist Restore Console.
  2. Click Load all known backups or Browse to locate the backup set from which you want to restore.
  3. Choose the job that corresponds to the backup from which you want to restore a VSS application.
  4. Use the calendar to select the date of the backup from which you want to restore.
  5. Use the middle pane to expand the loaded backup set and select the application(s) you want to restore.
    Vss Restore selections
  6. Click the Restore to button located on the bottom right and follow the remaining prompts.

    How the VSS application restore works

    VSS supports live application restore, which means that you do not need to stop a running application before recovering a previous version of it from a backup. If any Windows services need to be stopped and restarted during an application restore this will happen automatically. If, for example, you are recovering an SQL Server and the SQL database being restored is in use, SQL Server will automatically deny access to the database until the restore is complete. Databases that are not part of the restore will not be affected unless the master database is being restored. If the master database is being restored, the entire SQL service will be stopped and restarted after the restore has completed.