I keep data on a USB drive, but I also keep a copy of all of that data on a hard disk. I like using the hard disk because it's faster and gives me a backup. What standalone tools would work to keep the files on the disk and USB drive in sync? I'd like a single command line executable or standalone GUI app that can do the job--something I could run off of the USB drive. So, things like the MS Sync Tool wouldn't work.
Asked
Active
Viewed 4,869 times
6 Answers
2
Robocopy is by far the best tool I've found. It's even included in newer versions of Windows. It has a whole heap of options, but basically, the following command will make the destination directory an exact copy of the source directory:
robocopy C:\your\source\path D:\your\dest\path /MIR
Note that this not only copies files, but deletes them as well - if a file is not in the source directory it will be deleted from the destination directory, so be careful.

EMP
- 5,172
- 10
- 37
- 33
2
Unison is the tool of choice if you don't mind the sometimes counterintuitive (optional) GUI. It is like rsync in both directions, hence actual synchronization and not only mirroring. Also updates are made in an atomic way (if at all possible) so you are never left with a half-through update of a file.

Paul
- 1,918
- 4
- 18
- 24