We help IT Professionals succeed at work.

Diskshadow copy data to another location

Ackles
Ackles asked
on
1,710 Views
Last Modified: 2014-08-11
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
Comment
Watch Question

Author

Commented:
Any one?
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Hobocopy works great.

Thanks,
A
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.