3

why does robocopy say this file is older?

Robocopy shows (I think I used /MIR and /L)

   2    M:\bk\laptopcopy\pics\
        Older              79248    regular-expressions-cheat-sheet-v2.png

None of the time stamps seem to reflect that though.

---- dir showing the modified time stamp
M:\>dir m:\bk\laptopcopy\pics
Tue 22 Jul 2008  05:01            79,248 regular-expressions-cheat-sheet-v2.png

F:\formozy\smalltxtdoc\bk\laptopcopy\pics
>dir regular-expressions-cheat-sheet-v2.png
22/07/2008  05:01            79,248 regular-expressions-cheat-sheet-v2.png
------


---dir showing the creation time stamp----
M:\bk\laptopcopy\pics
>dir /t:c regular-expressions-cheat-sheet-v2.png
24/08/2008  16:04            79,248 regular-expressions-cheat-s

F:\formozy\smalltxtdoc\bk\laptopcopy\pics
>dir /t:c regular-expressions-cheat-sheet-v2.png
24/08/2008  16:04            79,248 regular-expressions-cheat-s
----------------------


--- dir showing the access time stamp    
M:\bk\laptopcopy\pics
>dir /t:a regular-expressions-cheat-sheet-v2.png
20/04/2013  11:23            79,248 regular-expressions-cheat-sh

F:\formozy\smalltxtdoc\bk\laptopcopy\pics
>dir /t:a regular-expressions-cheat-sheet-v2.png
29/12/2010  14:31            79,248 regular-expressions-cheat-sh
----------

Documentation says [1]

File        Exists In   Exists In        Source/Dest     Source/Dest   Source/Dest
Class       Source      Destination      File Times      File Sizes    Attributes
=========== =========== ================ =============== ============= ============
Lonely      Yes         No               n/a             n/a           n/a
Tweaked     Yes         Yes              Equal           Equal         Different
Same        Yes         Yes              Equal           Equal         Equal
Changed     Yes         Yes              Equal           Different     n/a
Newer       Yes         Yes              Source > Dest   n/a           n/a
Older       Yes         Yes              Source < Dest   n/a           n/a
Extra       No          Yes              n/a             n/a           n/a
Mismatched  Yes (file)  Yes (directory)  n/a             n/a           n/a

[1] What does robocopy mean by tweaked, lonely and extra?

Which mentions documentation and http://theether.net/download/Microsoft/Utilities/robocopy.pdf and http://www.lordgoogle.com/downloads/robocopy/robocopy.doc

barlop
  • 25,198

1 Answers1

5

I had the same issue and came across the following:

http://www.conetrix.com/Blog/post/Robocopy-Incorrectly-Detects-Files-as-Newer-When-Copying-Between-Different-File-Systems.aspx

Basically, this indicates that you can use the /FFT switch to Assume FAT File Times (2-second date/time granularity).

Using this now and I no longer get 100000 identical files overwritten

barlop
  • 25,198
Carl
  • 170