Updated How to enable VSS for rclone (markdown)

asdffdsa6131 2019-09-08 12:10:37 -04:00
parent b14ea4e0eb
commit 4a536cb959

@ -24,9 +24,16 @@ Let's say that I want to sync c:\data\ to the cloud.
2 - Create a file named exec.cmd file:
rem Call setvars.cmd, to load the variables created by vshadow.exe.
call setvars.cmd
rem Create the symbolc link to the snapshot.
mklink /d c:\snapshot\ %shadow_device_1%\
rem Run rclone with the source as c:\snapshot\data\, not c:\data\.
rclone sync c:\snapshot\data\ dest:data
rem Delete the symbolc link.
rmdir c:\snapshot\ /q
That is all it takes to create a shadow mount.
@ -37,12 +44,6 @@ vshadow.exe will:
2. Create the snapshot.
3. Execute exec.cmd.
exec.cmd will:
1. Call setvars.cmd, to load the variables created by vshadow.exe.
2. Create a symbolc link to the snapshot.
3. Run rclone with the source as c:\snapshot\data\, not c:\data\.
4. Delete the symbolc link.
Note that c:\snapshot\ is a temporaty link only accessible while exec.cmd is running. when exec.cmd exits, the snapshot is removed by Windows operating system.
I find it confusing, that c:\snapshot\ is a mirror image of c:\.