Exclude Files from Shadow Copies (Previous Versions and System Restore)

Volume Shadow Copies (VSS or also known as Volume Snapshot Services) is the technology used to perform snapshot and backup of system files and user data files at a specific time at regular interval. The incremental backup or snapshot by Shadow Copy is then used by System Restore or Previous Versions feature in Windows to restore Windows to previous state or recover deleted or altered files and folders.

When enabled and running properly, Shadow Copy service will backup almost everything on the drives. And Shadow Copy, which commonly known as System Restore accessible by System Protection in Vista System Properties is turned on by default on system drive. Thus, various System Restore Points created will save copies system and user data files incrementally in Shadow Copy repositories.

The existence of backup copies of files and folders in another location in VSS repositories may bring several issues. Firstly, for users who don’t use Previous Versions or System Restore features, or those (users of Home Premium and Home Basic editions of Vista) who can’t access shadow copies of user data files, keeping these files is wasting disk space. Secondly, Shadow Copies may potentially leak trace and record of sensitive and private files or documents.

The first issue can be solved by disabling the Shadow Copy (or commonly known as System Restore). And for users who just want to keep some private confidential data out of the reach of been monitored and backed up can exclude files from Shadow Copies. MSDN Library describes how to using registry key to exclude files from Shadow Copies by deleting the selected files from shadow copy during creation.

Using the FilesNotToSnapshot Registry Key to Exclude Files from Shadow Copy

Files can be deleted from a shadow copy during shadow copy creation by using the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot

This registry key has REG_MULTI_SZ (multi string) values for each application whose files can be excluded. The files are specified by fully qualified paths, which can contain the * wildcard. If a fully qualified cannot be specified, then a path can also be implied by using the $UserProfile$ or $AllVolumes$ variable. For example:

  • UserProfile$\Directory\Subdirectory\FileName.*
  • $AllVolumes$\TemporaryFiles\*.*

To make the path recursive, append ” /s” to the end. For example:

  • $UserProfile$\Directory\Subdirectory\FileName.* /s
  • $AllVolumes$\TemporaryFiles\*.* /s

In all cases, the entry is ignored if there are no files that match the path string. Note that the exclusion (or rather the deletion of the files from the Shadow Copy repository during creation by the shadow copy optimization writer) of the files been added to the appropriate registry key value, is on a best-effort basis.


One Response to “Exclude Files from Shadow Copies (Previous Versions and System Restore)”

  1. fsr
    September 23rd, 2008 05:27
    1

    How can I change shadow volume storage association in Vista Premium and Basic ?

    Vssadmin doesn’t work !

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

exclude folders from shadow copy - shadow copy exclude file types - shadow copy exclude folder - vss exclude files - vss exclude file - Windows 7 Shadow copy optimization writer - exclude folder from VSS - exclude folder from shadow copy - exclude folder from folume shadow - shadow copy optimization writer - excluding files from system restore - exclude folders from shadow copies - shadow copy exclude - windows 7 wasting disk space on volume shadow copies - windows 7 system restore+shadow copies+privacy+sensitive - how to restore previous version of windows 2003 from shadow copy - how to exclude files in vss - Shadow Copy Exclusions - how to exclude shadow copy directory from Anti-Virus - system restore windows 7 excluded - windows 7 system restore exclude files - exclude file from previous versions - shadow copies exclude folders - shadow copy and restore previous version in windows 2003 - windows 7 previous version vs system restore - exclude file vss - windows 2003 shadow copy files exclude backup - cp folder exclude [!.]* - exclude files snapshot registry - trend micro shadow copy - windows vista backup ignore folders - "exclude file from VSS backup" - exclude from previous version - exclude antivirus scanning on shadow copies - files to exclude from a backup - nti shadow disable shadow copy - previous version.key - Shadow Copies Folders - sophos exclude shadow copy folder - vista backup exclude file - VSSadmin.exe excluding files - exclude folders from shadow copies 2008 - how to restore files from shadow images in windows 2003 - vss folder mcafee excluding - win7 exclude from library - exclude folders from volume shadow copy service - filesnottosnapshot - shawdowcopy exclude files 2003 - shadow copy exclude files server 2003 - system restore windows 7 exclude folders -