Share this

Yshadow

As of version 0.8.1 of yintersync it no longer uses yshadow. We have completely stopped development of yshadow and leave it here for you to download for you own projects. If you do use it we would love to hear how in our forums.
 
We release this tool with absolutely no warranty or guarantee that it will work, it is meant for testing and experiments only. We have only tested it within the constraints of yintersync so cannot say for certain it will work outside of this. We welcome any feedback or queries about this tool in our support forum.
 
Download yshadow0.2.zip (Source code: yshadow0.2-src.zip)
 
Version 0.3 Changes
  • Fixed bug where vshadow output would hang on server 2008 r2
  • Introduced non persistant shadow copies for os other than xp
Version 0.2 Changes
  • Fixed bug where shadow token had drive stored but it was infact deleted
  • Fixed detection of Windows Web Server 2008 R2
For yintersync to work how we wanted it to we needed a tool
that could create shadow copies on all versions of windows with the shadow copy service (Windows XP onwards). We also needed it to be able to mount the shadow copy as a drive letter in order for rsync to be able to access it properly.
 
Rather than integrate this functionality into the yintersync-client executable we made our own command line tool for the task that yintersync then uses to create its shadow copies. We decided to keep it separate like this as it makes testing and diagnostics easier and also the tool could prove useful for other people out there (it would work really well in a robocopy batch task).
 
Yshadow detects which version of windows you are running on and uses the appropriate vshadow executable for that version of windows. Using the wrong vshadow would result in an error.
 
Yshadow can create a shadow copy and mount it as a drive letter on the following operating systems (as taken from the yshadow lookup table):
 
 
Desktop:
 
  • Windows XP
  • Windows XP x64
  • Windows Vista
  • Windows Vista x64
  • Windows 7
     
  • Windows 7 x64
Server:
 
  • Windows Server 2003
  • Windows Server 2003 x64
  • Windows Server 2003 R2
  • Windows Server 2003 R2 x64
  • Windows Server 2008
  • Windows Server 2008 x64
  • Windows Server 2008 R2
  • Hyper-V Server 2008 R2
     
How it works
 
Yshadow uses the appropriate vshadow executable and creates a shadow copy with it. It keeps track of the shadow copies by creating a token file for each shadow copy located in 'resource\shadows'.
 
On Windows XP which does not support persistent shadow copies, yshadow launches the Windows XP vshadow application but keeps it running in the background. It then monitors the token file that is created and removes the shadow copy if this is deleted. Restarting the computer will also loose the shadow copy as it is isn't persistent
 
On all versions of Windows after XP yshadow uses the expose as drive letter functionality that vshadow has to create the shadow copy and then expose it. This can then be remove using yshadow. The shadow copy will remain after the computer has restarted