xcopy switches for proper data integration

momeNt

Diamond Member
Jan 26, 2011
9,290
352
126
Have a little problem that I think I need the right xcopy switches but I want to make sure before I do it.

Basically the problem is as follows.

Have old set of data from a server that crashed. New server did not get complete set of data. Old server backup was very crappy and the person who put the backup into the new server didn't realize that if he buried the new data 3-4 directories deep, he would run into the max character limit.

I have copied off all the old server data to a USB drive. I want to merge the data that is on the USB drive, with the new server data. The source would be the new server, the destination would be the USB hard drive. I want the source to overwrite files on the destination, and also add files to the destination if some have been created since the crash and switch to new server.

What xcopy switches do I need to accomplish this? The reason I want to put the new server data on the USB drive is so that the new server can have the data drives rebuilt as raid 5. they were initially set up as raid 1 and we are not happy with the cost of storage in that situation.

Thanks in advance for any help.
 

Elixer

Lifer
May 7, 2002
10,371
762
126
Why are you using xcopy ? Is that your only choice ?
Would you be ok with using rsync, or something similar ?
 

razel

Platinum Member
May 14, 2002
2,337
93
101
xcopy /? and a quick google search will tell you what you need to know. However, if you can get to anything above command line, I use WinMerge. It's free, open source and works well for me with small code patches.

In your case, you want to use it to compare folders. It will summarize the folder differences and you can then right click and merge whatever direction you'd like.
 

momeNt

Diamond Member
Jan 26, 2011
9,290
352
126
Why are you using xcopy ? Is that your only choice ?
Would you be ok with using rsync, or something similar ?

No not my only choice, I am not super cmd.exe savvy and it came up on a google. Initially when getting old server data I tried drag and drop and was getting errors on certain large folders. Xcopy transferred over.

Not familiar with what rsync is. Doesn't seem to be a cmd.exe command though.

FWIW, both servers are windows.
 

momeNt

Diamond Member
Jan 26, 2011
9,290
352
126
xcopy /? and a quick google search will tell you what you need to know. However, if you can get to anything above command line, I use WinMerge. It's free, open source and works well for me with small code patches.

In your case, you want to use it to compare folders. It will summarize the folder differences and you can then right click and merge whatever direction you'd like.

I feel like my switches would need to be /e /s /d /y. I just wanted maybe some verification before I hit enter :(

I wouldn't mind using a program, i went to command line just because drag and drop failed.