Backing Up and Restoring System State
When performing a VSS backup or restore, the Windows system state is defined as being a collection of several key operating system elements and their files. These elements should always be treated as a unit by backup and restore operations.
When backing up and recovering system state, the recommended strategy is to back up and recover the system and boot volumes in addition to the files enumerated by the system state writers.
In addition to the enumerated operating system and driver binary files that are enumerated by the system state writers, there are certain other files that must be backed up as part of system state.
All the components reported by a VSS system state writer are part of system state except those for which the VSS_CF_NOT_SYSTEM_STATE flag is set.
Backup programs should also set the LastRestoreId registry key. For more information, see Registry Keys and Values for Backup and Restore.
For Windows Server 2012 and later, in addition to the files reported by the various VSS system-state writers, only the following licensing files need to be included explicitly, and the following DRM files need to be excluded explicitly.
In Windows Server 2008 and later, the following files, including all subdirectories under the following path, are excluded from system state and must not be backed up:
This supersedes the information in the Windows Media Digital Rights Management section of Working with File System and Security Features.
The performance counter configuration files are located in the %SystemRoot%\System32\ directory and have the following names:
These files are only modified during application installation and should be backed up and restored during system state backups and restores.
The relevant IIS configuration files and their locations are listed below:
- The .NET FX machine.config file is located in the framework version directory.
- The ASP.NET root web.config file is located in the framework version directory.Note The configuration files for both .NET FX and ASP.NET are in the framework version directory. If multiple versions of the framework are installed on the computer, this directory will contain one configuration file for each installed version.
- The IIS applicationHost.config central configuration file is located in the %windir%\system32\inetsrv\config directory. For the server to understand this configuration file, there are schema files that determine its grammar and structure. These files are located in the %windir%\system32\inetsrv\config\schema directory.
The framework version directory path is stored in the following registry key:
In addition, the following cryptography keys must be backed up:
All versions of the .NET framework must be backed up. The files are located in one or both of the following directories:
In addition, the assembly files must be backed up. These files are located in the following directory:
The task scheduler's task files must be backed up. The files are located in one or both of the following locations:
- %windir%\system32\tasks and any subdirectories (recursively)
- %windir%\tasks (no subdirectories)