From 4a536cb95911fb493d3992947d5879a933451b96 Mon Sep 17 00:00:00 2001 From: asdffdsa6131 <42986211+asdffdsa6131@users.noreply.github.com> Date: Sun, 8 Sep 2019 12:10:37 -0400 Subject: [PATCH] Updated How to enable VSS for rclone (markdown) --- How-to-enable-VSS-for-rclone.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/How-to-enable-VSS-for-rclone.md b/How-to-enable-VSS-for-rclone.md index cbbb3f3..4a0d0e6 100644 --- a/How-to-enable-VSS-for-rclone.md +++ b/How-to-enable-VSS-for-rclone.md @@ -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:\.