Diskshadow copy data to another location

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
LVL 11
AcklesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AcklesAuthor Commented:
Any one?
0
marsiliesCommented:
Here's two examples of other people using robocopy and diskshadow together:
http://superuser.com/questions/394296/is-there-a-tool-to-copy-a-folder-using-shadow-copy
http://penguinpackets.com/~kelly/kblog/blog/01245955834

Another option may be to use the open source hobocopy utility, which basically has shadow copying built in:
http://candera.github.io/hobocopy/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AcklesAuthor Commented:
Hobocopy works great.

Thanks,
A
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.