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.
Pierre AmmounAsked:
Who is Participating?
 
NVITCommented:
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
 
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
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.