Xcopy not copying all the files

Hi,
  I have a SBS2001 that has a lot of data files that I need to backup because I need to move these files to the new server(SBS2011).
  I attached an external USB hard drive to old server and ran XCOPY command.

  It is like this: XCOPY C:\ABC\*.*  F:\ABC  /c /d /i /e /y

  After XCOPY was done in command window, I realized that the files in USB backup hard drive has significantly less files than those on the file server.
   I went thru one folder at a time from the beginning and compared the number/size of original folder on the file server against that of USB hard drive and I found one/first folder that showed the difference in size/number.
   I used Windows Copy/Paste on that particular folder. After copying was done, I compared the size/number and they matched up.  But there are simply too many folders to go thru one at a time.
   I guess I can also do Copy/Paste the entire folder and do it that way too if that is more reliable.
   But I thought if you select & copy a root folder that has almost 100GB of files and try to paste, it may lock up the server due to heavy usage of memory ... that was just my guess.

   Do you know if there is an inherent issue/problem in XCOPY command? or Copy and Paste operation is better and accurate?
   
   ** Some may wonder why I did not choose Windows backup and Restore or why not put those two servers on the same network. First both servers have identical name and IP address. Second I wanted to copy as many files as possible in advance and paste them over to the new server so that on the day of deployment, I can simply copy "Changed or New" files using XCOPY command.
LVL 1
sgleeAsked:
Who is Participating?
 
Rick HobbsRETIREDCommented:
Try Robo copy it's free utility that will do a much better job for you and it'll only copy files it changed if you want.
0
 
Rick HobbsRETIREDCommented:
Also with Xcopy or not to be able to  copy open files
0
 
rfportillaCommented:
What is /d?  You should probably be using /H, also.  Are there hidden files?
0
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.

 
sgleeAuthor Commented:
/d is date option. In other words, it will check the date of the file on both origin and destination folder. If both files have the same date/time, then it skips that file and move on to the next file in line. It saves the time.
0
 
rfportillaCommented:
Sorry, dumb question.  I knew it was for date, but I that you had to pass a value.  Didn't realize you could pass it with no value.  

Regarding hidden files?...
0
 
sgleeAuthor Commented:
Regarding hidden files ...
When I found first folder with difference in numbers, there were just plain old files - Word/Excel/PDF. They were all visible in windows explorer.
0
 
sgleeAuthor Commented:
"Also with Xcopy or not to be able to  copy open files"
Since I am copying these files at night, I don't have to worry so much about open files, but I know it is important...
0
 
sgleeAuthor Commented:
Is there a danger using windows copy and paste on a folder that has about 100GB of folders and files inside - like server lockup or anything like that?
0
 
rfportillaCommented:
There shouldn't be.  My biggest concern would be slowness.  Windows will do "preparing to copy" crap indefinitely.  

If the server is stable, then it shouldn't have any issue.  I have copied several hundred Gigs without issue.
0
 
sgleeAuthor Commented:
"preparing to copy" crap indefinitely ---> I hear you and I have it many times.
Well, the old server (SBS2003) is NOT SO stable and that is the reason for installing a new
server (SBS2011) and that was the reason I was trying XCOPY instead.
I thought XCOPY is a quite operation in command window.
Let me think about if I want to try Copy and Paste on 100GB folder.
0
 
rfportillaCommented:
As mentioned by other expert, robocopy is a viable option.
0
 
Steve KnightIT ConsultancyCommented:
Would just use robocopy too, I don't see why it wouldn't work with xcopy UNLESS maybe it had no rights to the files in a non-run-as-admin command prompt?   In cmd.exe window can you see them, and copy / open them?

robocopy /mir \\oldserver\share D:\folder\on\new server


Steve
0
 
sgleeAuthor Commented:
Currently running Copy & Paste on 100GB folder. Let's see  how it goes.
If Copy & Paste is successful, then I will copy the files from old server into the new server.
When I am ready to replace old server with new server, then I will simply use ROBOCOPY to copy only NEW & Modified files.

Does this command compares the date/time of each file and skip them if they are the same? I am only interested in copying new & modified files.

robocopy /mir \\oldserver\share D:\folder\on\new server

Xcopy will check the date/time with /D and only copy new and modified files.
0
 
Steve KnightIT ConsultancyCommented:
robocopy is better than that, with /mir it will copy the files that have changed only AND remove any files from the destination that have been deleted from the source too, i.e. make them the same.

millions of options on roboocopy and maybe you need permissions, copied, or maybe not etc.  on mobile at moment but if unsure of which combinations to use, just ask.
0
 
sgleeAuthor Commented:
This time I just used windows Copy & Paste (one chunk of folders at a time) and it worked. They match up now.

I also tried Robocopy and I can see the benefit of it and I will use it moving forward.

Thanks for your help.
0
 
Steve KnightIT ConsultancyCommented:
Sure.  Robocopy is great for migrating data over between boxes etc. as it can just be re-run. "Richcopy" is a GUI robocopy-like free MS tool too, though a bit old now, and robocopy is built into the OS With 2008/Win7 etc.

Steve
0
 
sgleeAuthor Commented:
How can I get robocopy installed on windows 2003 server?
0
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.

All Courses

From novice to tech pro — start learning today.