Need script or software to move files/directories but only if more recent or brand new

OGSan used Ask the Experts™
Hi, Experts -
Our IT team has recently set up new servers to hold all of our HR departmental data.  They made copies of everything that was on the old HR network share as of May 18.  However, the old locations were still accessible - and were being updated...!

I need a script that will copy the files (and, when found, copy entire new directories with their files) from the old location to the new location only when:
Timestamp of the file in the "old" location is more recent that the value found on the "new" location;
File in the "old" location is not found in the "new" location.

I was reading about Robocopy and then about RichCopy, but I figured I'd be better off asking one of the Experts:  What file synchronization/file copy software is most reliable and (fairly) easy to use?  I don't have a budget for this - so Free or Inexpensive would be best.  Many, many thanks for your input!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
robocopy is definitely the way to go.


robocopy \\locationA\share \\locationB\share /MIR /R:0

This will create a replica from location A and capture any new changes since the last time this command was executed.


Thanks for the quick reply, motnahp00.  I'll give this a shot and report back soonest.
You're welcome.
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Sorry about the robocopy syntax I mentioned above. Please map both locations and execute as follows:

robocopy X:\share Y:\share /MIR /R:0
I like allwaysyc

free for personal use... PRO version is only $19.95


Thanks, buttersk!  I'm liking allway sync a lot right now!


Buttersk, thanks for suggesting allways sync - I'm going to use that!

Motnahp00, thanks for the quick response but I feel more comfortable not having to create a script from scratch and just using allways sync is the better fit for us right now.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial