Robocopy is copying empty files. Why? How do I fix it?

I ran Robocopy to migrate data from a Drobo NAS device to a Dell Server running Windows Server 2012 R2.  The Server has Direct Attached Storage and a large volume created to share the files.  

I used the following command:
robocopy "T:\" "X:\Media" /E /ZB /R:5 /COPY:DAT /PURGE /X /TEE /LOG:"C:\RobocopyLog.txt"

The destination files all show the file size under size (i.e. 27.9 MB) but under Size on disk they say 0 bytes.  Server 2012 shows very little data on the volume (110mb).  

Remote access of the files on the destination server result in error messages about corrupt files.  

I don't understand showing size accurately, but size on disk showing 0 bytes.  Also, it's taking days to copy the data, so it's not like it's quickly copying 0 bytes.

For whatever it's worth I have dedup set up on the destination Volume.
Taylor HuckstepSenior Director, ITAsked:
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.

Miguel Angel Perez MuñozCommented:
Could you check user used to run command has enough privileges? (minimal read only on origin and write on destination).
Is the robocopy job complete or still in progress ?

It is quite possible the copy job is not yet complete.
Taylor HuckstepSenior Director, ITAuthor Commented:
Job completed, and filled the drive with 0 files.  I'm logged in as Administrator.

I just don't understand how it can copy a file that takes up no space, but reports its original size.  Maybe COPY:DAT copies the file size metadata or something.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Taylor HuckstepSenior Director, ITAuthor Commented:
This is what I'm seeing.  Complete files that take time to transfer, but have nothing in them:
Taylor HuckstepSenior Director, ITAuthor Commented:
Still not sure why or how it was taking forever to copy files with 0 bytes on disk, but this command ended up properly copying for me:
robocopy "T:\" "X:\Media" /E /V /ZB /R:5 /W:30 /TEE /LOG:"C:\RobocopyLog.txt"
So I am guessing this is what happened:
Deletes destination files and directories that no longer exist in the source.

There may have been some aberrant behavior with the purge flag.

In the future take a quick look at all the flags to verify which you want to use:

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
Taylor HuckstepSenior Director, ITAuthor Commented:
Yeah, I had that thought too.  Thanks to all for your comments.
Taylor HuckstepSenior Director, ITAuthor Commented:
I added my command string to the solution as that fixed the original problem.  I think becraig had it right with the /purge option.

I was trying to mirror up source and destination, including the removal of nonexistent folders, hence the /purge flag.  If /purge was causing the problem, it wasn't because the string was acting as its supposed to.

I wanted to do a migration, then resync after a period of time, just the changes, including removal of any deleted folders and data from the source.

My string I used, only copies from source, it doesn't sync.
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
Windows Server 2012

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.