How to merge 2 folders with 'only' the newest version of files ?

Dears

Due to a mess up in mapping, a user in my domain was working for few days on his backup homefolder instead of his "live" homefolder.
So now I have 2 folders for that users with some file newer than other but in both ways...
How can I re-merge them and get a folder that has all his newest version of each file ?
PS: He has many sub-folders and his homefolder is around 20Gb.

Thank you.
LVL 1
Pierre AmmounIT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

NVITEnd-user supportCommented:
Just use robocopy.
This copies all files, including subfolders, excluding older files.
It doesn't delete any files, which is safer.
It makes a log file on your c:\, which shows what files and folders were copied.
Run it from your server:

...from "\\share\user\homefolder" to "\\share\user\livefolder".
robocopy /e /xo /np /r:0 /w:0 /dcopy:t /log+:c:\robocopy_2017.12.15_HomeToLive.txt "\\share\user\homefolder" "\\share\user\livefolder"

Open in new window


Then do same from "\\share\user\livefolder" to "\\share\user\homefolder":
robocopy /e /xo /np /r:0 /w:0 /dcopy:t /log+:c:\robocopy_2017.12.15_LiveToHome.txt "\\share\user\livefolder" "\\share\user\homefolder"

Open in new window

3

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
JohnBusiness Consultant (Owner)Commented:
I use Beyond Compare (Scooter Software). It is a good folder compare tool that will let you easily see the differences in files.
0
nobusCommented:
whatever you do - keep Always a backup - and work from a copy; to avoid deleting too much (what happened to me)
1
Olgierd UngehojerSenior Network AdministratorCommented:
You can use Total commander and synchronize dir option.
0
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 Batch

From novice to tech pro — start learning today.