Link to home
Start Free TrialLog in
Avatar of Andrew N. Kowtalo
Andrew N. Kowtalo

asked on

File Comparison

Hi all,

About 6 months ago we performed a file migration from one of our clients old file servers to their new environment.   It seems some files were not truncated in size and did not get included when the migration was done.    We received a call today from the client stating theres about 70 gigs in size difference between their old share path and new share path.  

They have all the potential missing files available on their old external USB and I was wondering if anyone could give me a command from xcopy I could run to ONLY copy over the files that were not originally moved to the new share path WITHOUT overwriting their new data.  This could be disastrous if the new files get overwritten.   They just want to move the old missing files that never came across.   They dont have anything like beyond compare so I am looking for a free easy command to do this.   XCOPY would be preferred.  Thank you for your assistance.  
Avatar of Kimputer
Kimputer

Download Freecommander: https://freecommander.com/en/downloads/
Navigate source on the left side, target at the right side.
Use the Synchronize command, compare first. Set the flags to only move from left to right.
After the compare is done, all files are listed. Double check one more time it's all correct, then give the sync command.

If you don't trust it, backup target first so nothing gets lost.

Avatar of Andrew N. Kowtalo

ASKER

Kimputer thank you I will give this a try and let you know

Quick question by hitting Synchronize it wont move the files it will simply flag them to show the difference right?
This is it in robocopy

robocopy "source" "Destination" /z /copyall /xo /sec /mt /v /r:0 /w:0

please test this prior to doing it in production, I'm pretty sure it's correct though.

Regards
Alex
so if I robocopy source it would be the drive target?  verse destination which i can just include the share path?
Compare button does nothing, shows you the list (after comparing a bit, might take a while if you have a lot of files).
Synchronize button will COPY the files.
Kim I think there are arrows at the bottom I can individually copy instead of clicking synchronize.   I am fearful current files may be overwritten.  I dont know if it does an overall differential merge.  
so if I robocopy source it would be the drive target?  verse destination which i can just include the share path?                                   

Correct, so for example if it were your external drive on e:\

robocopy "e:\" "\\server\sharename" /z /copyall /xo /sec /mt /v /r:0 /w:0
ASKER CERTIFIED SOLUTION
Avatar of Andrew N. Kowtalo
Andrew N. Kowtalo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Andrew, just FYI since you accepted your own comment as the solution so the volunteers who helped you don't get any points for that. You can still accept more comments as answers if you want.
This is very confusing.   If multiple suggestions are given how do I credit both?  I can only click 1 solution both worked.  You should award points to them both.  
@alex
robocopy "e:\" "\\server\sharename" /z /copyall /xo /sec /mt /v /r:0 /w:0 seems to have almost worked.  I am being told the script only copied the files from the top folder and did not look at the subfolders.   Is there a way to edit the script to have it go through evey folder and subfolder in the entire drive and get those as well?