While improving my (personal) backup system, I noticed, that I cannot copy certain locked files, like the windows registry files. Is there a way to copy such things? Or a specific solution for the registry (I know of the regedit->File->Export ,,solution'' but this is to text format and seems slow). AFAIK, on Linux the locking system is advisory and on Windows it is mandatory. Can I somehow bypass the mandatory-ness for backup purposes etc.? TIA.
I wrote some scripts a while ago to do exactly this. They use volume shadow copy to create a temporary snapshot, then copy the files from the snapshot before releasing it.
And I used Robocopy to do the copying, so if the file already exists in the target folder and hasn't changed then it is skipped.
It works extremely well, when run every day it only took about 2 minutes to "freshen" a backup of the system volume of a win2003 server. With a small amount of stuffing around you can get the backup of an XP or a win2003 system volume to boot. (Details on how to do this are in a text file in the linked archive.)
I never tried to get a backup of a 7/vista/2008 system volume to boot, but I'm sure that would be possible too.
You can download the script and related tools from here: http://drop.io/vssbackupscripts
Let me know if you find them useful!