We need some help with running a script to create shadow copies of open or locked files using vshadow.exe.
The shadow copies will then be used to rsync (using DeltaCopy or grsync) to a backup location, before being destroyed. The backup is from a Windows 7 machine to a Linux NAS box.
We already have a first attempt at the script so we just need some help to make it work properly. I think we are OK with the rsync syntax but we *may* need some help with that - not sure yet.
We also *may* need a way to monitor real-time files for changes using FileSystemWatcher Class or [login to view URL]
[login to view URL] reads:
Rem Create the shadow copy
vshadow -script=[login to view URL] -exec=[login to view URL] c:\Users\User\Target
and [login to view URL] reads:
Rem mount / unmount the shadow copy and execute rsync
REM read the shadow volume variables
call [login to view URL]
REM define the temporary drive letter
dosdev V: %SHADOW_DEVICE_1%
REM rsync the shadow device
[insert rsync syntax here]
REM delete the temporary drive letter
dosdev -r -d V:
When I run [login to view URL] as administrator I get an error message reading:
(Option: Generate SETVAR script '[login to view URL]')
(Option: Execute binary/script after shadow creation '[login to view URL]')
ERROR: the parameter '[login to view URL]' must be an existing file!
- Note: the -exec command cannot have parameters!