troubleshooting Question

Diskshadow copy data to another location

Avatar of Ackles
AcklesFlag for Switzerland asked on
Microsoft Legacy OS
3 Comments1 Solution1725 ViewsLast Modified:
Hi,
I am using Diskshadow as below:

#DiskShadow script file

set context persistent
set metadata C:\diskshadow\metadata.cab
set verbose on
begin backup
      add volume d: alias d_shadow
      writer verify {c186601a-f9a1-4824-a90c-9d45484a808b}
      create
      expose %d_shadow% q:
end backup

delete shadows id %d_shadow%

#End of script

This works fine & has no problem, the problem is as follows:

I want to copy the content of Q: to another drive E:, however it doesn't work, see syntax below:

#DiskShadow script file

set context persistent
set metadata C:\diskshadow\metadata.cab
set verbose on
begin backup
      add volume d: alias d_shadow
      writer verify {c186601a-f9a1-4824-a90c-9d45484a808b}
      create
      expose %d_shadow% q:
end backup

robocopy /Log:c:\temp\logtest.txt q: E:\Backup %NOW% /XO /mir /xj /sec /TEE


delete shadows id %d_shadow%

#End of script


Also, if I add robocopy in the script, the drive Q: doesn't get unexposed & robocopy only copies the folders without any content.


This is what I want as end solution:

Diskshadow makes Snapshot & I want to copy the snapshot to drive E:

Thanks in advance,

A
ASKER CERTIFIED SOLUTION
marsilies

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros