PDA

View Full Version : Copy files without modifying last accessed


da sponge
09-27-2006, 04:04 PM
Is it possible to copy files from one server to another without modifying the last accessed date (2k->2k3). I have about 20GB I need to move, but if I just do this through explorer all 20GB will have an accessed date of today (on the destination)- my working set backups will then grab these for the next two weeks and I'd rather not take the hit on tape.

pigster
09-27-2006, 10:16 PM
Pretty sure robocopy can do this (something to do with the /copy:da :confused: ) I'll check later

da sponge
09-28-2006, 06:35 AM
the only parameter I see with robocopy is about setting the archive bit which a working set backup doesn't use :(

pigster
09-28-2006, 07:44 AM
Just tried it :

robocopy \\server1\stuff \\server2\stuff2 *.* /s /copy:daDoes NOT change last accessed or created dates

Give it a try

nessus
09-28-2006, 01:25 PM
Robocopy will update the dates on folders, but it leaves files alone.

pigster
09-28-2006, 01:41 PM
Robocopy will update the dates on folders, but it leaves files alone.

Interesting, this explains a weird rbobcopy glitch I've noticed...

da sponge
09-28-2006, 02:12 PM
I'm getting different results. Not only did it modify last accessed on the destination, it's now done so on the source. Screenshots from Treesize Pro, which does not modify last accessed date on scan.

http://img90.imageshack.us/img90/8901/robocopyha0.png



robocopy e:\data\037 \\fileserv\methods\037N /s /copy:da
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version XP010
-------------------------------------------------------------------------------

Started : Thu Sep 28 13:37:36 2006

Source : e:\data\037\
Dest : \\fileserv\methods\037N\

Files : *.*

Options : *.* /S /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

pigster
09-28-2006, 02:51 PM
Very strange - here's a test run I just did with the same flags - see how the dates don't change? FWIW, both servers are Server2003SP1 with NTFS

http://members.cox.net/genmay/test.JPG

da sponge
09-28-2006, 02:57 PM
Notice how that says "Date Modified". That's a completely different attribute from "Last Accessed" (which can also be displayed in explorer, just right click and select it from 'more').

pigster
09-28-2006, 03:05 PM
Notice how that says "Date Modified". That's a completely different attribute from "Last Accessed".

DOH!! You are most correct :o

The only thing I can suggest at this point is to use Winzip to create an archive, and expand it on the other server

da sponge
09-28-2006, 03:27 PM
I've found a utility that allows me to reset the last accessed date to the same as modified. (attribute magic).

edit: it doesn't work on win2003 - resets it fine in 2k though. Anything else?