Solved

Robocopy verification

Posted on 2007-12-01
5
9,943 Views
Last Modified: 2011-12-23
I'm trying to ensure that robocopy does verification after it copies files.

I've seen plenty of post from folks saying that it does, but I have
yet to see any sort of documentation for this.
I'm looking for something definitive (preferably from MS). I've been
all over E-E, the MS Knowledge base, msdn, technet,
& mvps.org (to name a few), but no solid confirmation. I've reviewed
the .doc for robocopy which is included with
the resource kit download...nothing.

I'd like an answer ASAP, so I'm giving 500 points on this one...

Any help with this would be greatly appreciated.
0
Comment
Question by:IntInc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Expert Comment

by:weellio
ID: 20390279
the latest version has a progress bar,. you can turn on verbose logging to see the results

http://www.mydigitallife.info/2007/05/07/robocopy-syntax-command-line-switches-and-examples/
0
 
LVL 26

Accepted Solution

by:
souseran earned 400 total points
ID: 20390576
Robocopy does NOT write-verify. However, apparently it can be included in a script which will allow this.

See this March 2001 WindowsITPRO article, Real-World Scripting: Data Migration with Robocopy, Part 1 for more information:

http://emea.windowsitpro.com/WindowsScripting/Article/ArticleID/19826/19826.html

If write-verification is a function you need, XXCOPY DOES write-verify. It can be found here:

http://www.xxcopy.com
0
 
LVL 23

Expert Comment

by:Malli Boppe
ID: 20390690
Robocopy doesnot have a verify option.only option that you have is to create a log which can used to verify if the files are copied.
0
 
LVL 84

Assisted Solution

by:oBdA
oBdA earned 100 total points
ID: 20392526
If at all, you only need a verify if you're copying to unreliable media (floppy, CD, DVD, USB, tape, ...). If you're using robocopy only to copy from one server to the next, I don't see the need to run a verify (and I've copied literally hundreds of gigabytes using robocopy, without any problems and without verify).
It's not the job of a high-level copy program like robocopy to verify that the data has been written correctly; unlike copy programs written for DOS (where verify actually was an issue), robocopy uses standard Windows APIs. If those APIs report that the data has been written correctly, why would there be a need for robocopy to re-check this? It would use the same APIs that just reported that everything was okay, and so, in all likelihood, just waste your, the CPU's and the IO system's time.
Another matter are low-level copy programs like CD/DVD writing software, but that's not the issue here.
0
 

Author Comment

by:IntInc
ID: 20393405
Thanks everyone for your answers. Our question is answered, but I'm curious how everyone knows -- we looked around but couldn't find confirmation one way or the other.

oBdA: I think that's an interesting point about the Windows API. Given that Robocopy does not verify, I would use it whenever I would use Explorer's Copy, which I do not use it for more critical tasks:
 - How many of those 100s of GB had errors? How do you know? Maybe it was a few files, and the users haven't accessed them yet; or maybe they did encounter a corrupted or missing file months later, but how could the cause be attributed to robocopy? Was a missing file accidently deleted, misplaced, or under a different name ...? Did Word corrupt it? Our policy is to not believe anything we haven't verified.
 - I've seen the standard Windows copy function do some odd things, especially on large copy jobs.
 - I agree that verification will likely wasted I/O and CPU -- an error is very unlikely and I hope it's a complete waste -- but it's worthwhile to use given the cost of dataloss.

I'll accept souseran, who answered the question first. oBdA's answer definitely added value -- my statements above are partly just a difference of opinion and party depend on circumstances oBdA couldn't have known. Thanks again to both of you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question