Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Take this (certainly simplified) description from the HoboCopy tool:

HoboCopy is a backup/copy tool. (...) It uses the Volume Shadow Service (VSS) to "snapshot" the disk before copying. It then copies from the snapshot rather than the "live" disk.

Since Windows allows applications to fully lock files for read+write access I was wondering how Volume Shadow Copy Service handles locked files. (Locked as in an application does not share any access to a file it has opened, thereby essentially preventing any xcopy style backup of said file.)

Since Windows apps do their fair amount of locking, is there any chance to ever get a consistent backup this way?

share|improve this question

Sounds like VSS will copy locked files just fine. You should get copy of the file as it was when the shadow copy was created.

share|improve this answer

Shadow Copy creates a read-only snapshot of the filesystem exactly as it looked at that time, irrespective of any file locks. (They are usually intended to prevent programs from using a file that is being modified by another program; this is not an issue with VSS as you get a static copy.)

share|improve this answer

Volume Snapshot Service (VSS) relies on application cooperation in order to get a data-consistent snapshot. "Providers" register with the service and are called at the time of snapshot creation in order to create consistent disk images. Since this is a bit of work, the typical set of providers includes the registry and a number of databases.

Typical desktop applications don't participate.

So the answer to your question is something like: VSS creates copies of locked files and the writers of those files are responsible for making them consistent.


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .