Created
November 7, 2016 15:05
-
-
Save moisseev/044627f88b17e165cf5997acc12d0658 to your computer and use it in GitHub Desktop.
On-the-fly Windows directory mirroring using VSS snapshot with ShadowSpawn and robocopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem On-the-fly Windows directory mirroring using VSS snapshot | |
rem with ShadowSpawn (https://github.com/candera/shadowspawn) and robocopy | |
rem This script mirrors SRC directory contents into DST directory | |
set SHADOWSPAWN="C:\Program Files\ShadowSpawn\ShadowSpawn.exe" | |
rem Mount snapshot as: | |
set DRIVE=S: | |
set SRC="C:\path\src_dir" | |
set DST="C:\path\dest_dir" | |
%SHADOWSPAWN% %SRC% %DRIVE% robocopy %DRIVE%\ %DST% /mir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment