How do I tell robocopy to ignore timestamps?

1

I have two copies of my Music directory on separate drives. One is a thumb drive that I carry around with me so I can listen to whatever whenever. Initially I copied this directory to the thumbdrive using robocopy. I'm not sure the exact parameters I used, but it was probably:

robocopy D:\Music F:\Music /E /MIR

Now the drives are out of sync, so I want to robocopy again. However, for some weird reason, the timestamps are off on all the files by one hour. So when I try to run the command above, it starts copying every single file from D:\Music to F:\Music because it is newer.

How do I tell robocopy to ignore these timestamps and just copy files with different filenames, or those that have changed in some other significant way (such as the artist or genre info or something)?

Big McLargeHuge

Posted 2014-09-01T20:17:43.110

Reputation: 449

possible duplicate of How to copy ONLY those files that are not in the destination?

– lzam – 2014-09-01T20:44:42.750

@Izam that's pretty close but I'd like for it to copy files if something about the files has changed other than timestamp. – Big McLargeHuge – 2014-09-02T05:24:25.347

1Have you tried /DST switch? – MC ND – 2014-09-02T07:11:38.957

@MCND that's exactly what I needed! You should post that as the answer. – Big McLargeHuge – 2014-09-04T00:38:13.670

Answers

4

To handle one hour differences in environments where DST is active, robocopy includes since version XP026 (included in downloadable Robocopy GUI) or XP027 (included in Windows Vista) a /DST switch to "Compensate for one-hour DST time differences"

MC ND

Posted 2014-09-01T20:17:43.110

Reputation: 1 286