tb-rsync-vss

最後更新: 2015-05-26

 

 

VSS Tools

vsscopy

http://www.vsscopy.com/

* free for use in non-commercial environments.
* 162 MB

diskshadow.exe

* s2008

diskshadow -s script.txt

vshadow.exe

for Windows Server 2008 R2 (or Windows 7), you need to download Windows SDK v7.0.

https://www.microsoft.com/en-us/download/details.aspx?id=3138

Once the Windows SDK is installed, vshadow.exe will be located in,

    x86 - C:\Program Files\Microsoft SDKs\Windows\vx.x\bin\vsstools\vshadow.exe
    x64 - C:\Program Files\Microsoft SDKs\Windows\vx.x\bin\x64\vsstools\vshadow.exe

# Create a persistent shadow copy of the C: drive
vshadow-2008-r2-x64.exe -p -nw C:

# Mount that to the drive B
vshadow-2008-r2-x64.exe -el={43967aa7-8158-455c-9c2d-d6345503f961},B:

# delete the shadow copy
vshadow-2008-r2-x64.exe -ds={43967aa7-8158-455c-9c2d-d6345503f961}

tb-rsync-vss

 


tb-rsync-vss

 

Homepage

https://bitbucket.org/ericvsmith/tb-rsync-vss

介紹

* it does not use cygwin.dll

C++

I primarily use this program as a wrapper around "rsync", so that rsync can be called by "dirvish".

I routinely back up Windows boxes to Linux servers using tb-rsync-vss with "cygwin" rsync and sshd.

OS

Windows 7
Windows Server 2008 R2

License

Apache License

Link

https://bitbucket.org/ericvsmith/tb-rsync-vss

Testing

usage: tb-rsync-vss-64.exe [<arbitrary args>]* <path-looking-arg>

path-looking-arg: "/" [key=value "|"]* DOS-path

backup.bat

C:\Program Files\tb-rsync-vss-64-1.3\tb-rsync-vss-64.exe "/|tmp-drive=x|rsync=c:\windows\system32\cmd.exe|cygpath=false|logfile=d:\backup.log|verbose=true|d:\test"

opts:

  • tmp-drive                    #  A single letter, which is the drive letter the snapshot will be mapped to.
  • rsync                          #  The native (Windows) path name to the command to execute.
  • cygpath=false             #  the final path argument passed to the command will be DOS format
  • logfile=d:\backup.log   #  If present, a log file of this name will be written to.
  • verbose=true              #  verbose messages will be written to stderr and the log file

log

Tue May 26 11:18:48 2015 fatal error: 0x80070005 in CreateVssBackupComponents 563

backup.bat 要用 "administrator" 去行

working 的 log

Tue May 26 11:31:47 2015 calling CreateVssBackupComponents 563
Tue May 26 11:31:47 2015 done
Tue May 26 11:31:47 2015 calling InitializeForBackup 234
Tue May 26 11:31:47 2015 done
Tue May 26 11:31:47 2015 calling SetBackupState 237
Tue May 26 11:31:47 2015 done
Tue May 26 11:31:47 2015 calling GatherWriterMetadata 241
Tue May 26 11:31:47 2015 done
Tue May 26 11:31:47 2015 calling Wait 242
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling StartSnapshotSet 246
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling AddToSnapshotSet 249
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling PrepareForBackup 253
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling Wait 254
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling DoSnapshotSet 259
Tue May 26 11:31:49 2015 done
Tue May 26 11:31:49 2015 calling Wait 260
Tue May 26 11:31:51 2015 done
Tue May 26 11:31:51 2015 calling GetSnapshotProperties 203
Tue May 26 11:31:51 2015 done
Tue May 26 11:31:51 2015 mapping \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy11 to x:
Tue May 26 11:31:51 2015 calling DefineDosDevice 183
Tue May 26 11:31:51 2015 done
Tue May 26 11:31:51 2015 executing: ''c:\windows\system32\cmd.exe' 'x:\test''
Tue May 26 11:31:51 2015 calling CreateProcess 350
Tue May 26 11:31:51 2015 done

Example:

use tb-rsync-vss to run cygwin rsync.

It assumes that cygwin is installed in c:\opt

 

 

 

Other info

 

 

 

Creative Commons license icon Creative Commons license icon