Author Topic: Wrong Timestamp Stored within Files  (Read 2933 times)

dtindill

  • Calf
  • *
  • Posts: 2
Wrong Timestamp Stored within Files
« on: January 08, 2009, 01:29:41 pm »
   

I am trying to use a script to automate the massive file copy from our file server to our 4TB TeraStation Pro NAS device.  Rather than copy every single file (up to 3TB) every time, our script compares file timestamps on the source (our server) and the destination (the TeraStation Pro) to ensure they are the same.

 

When the file timestamp is viewed in Windows, it is correct.  When the timestamp is reported by RoboCopy, it is off by the timezone from GMT.  We are located in GMT-8, but Robocopy is seeing the file as GMT-0 therefore the timestamp never reports correctly.

 

Model: TS-RHTGL/R5

Firmware: 1.26

NTP Setup: Enabled and successfully refreshed.  Timezone set to GMT-08:00.

Drive Setup: Currently RAID-5 with 4x931GB drives, formatted with XFS filesystem.

 

In the current scenario, we have to re-copy up to 3TB every single time because the timestamp mismatch appears as though the files do not have the same timestamp.  I can handle the massive copy the first time and spend several hours, but I want subsequent tasks to only files with modified size or timestamp.

 

Thanks!


dtindill

  • Calf
  • *
  • Posts: 2
Re: Wrong Timestamp Stored within Files
« Reply #1 on: January 08, 2009, 01:39:17 pm »
   

After continuing to search the KB articles for other keywords, I discovered the solution here:

http://forums.buffalotech.com/buffalo/board/message?board.id=0101&message.id=110&query.id=5211#M110

 

Although Robocopy reports the timestamp in GMT-0, it actually was reporting the correct timestamp.  This is due to the timestamp granularity of NTFS versus XFS.

 

Robocopy scripts must include the /FFT switch that allows a 2-second timestamp difference.


martinbailey

  • Calf
  • *
  • Posts: 1
Re: Wrong Timestamp Stored within Files
« Reply #2 on: January 21, 2009, 08:24:52 am »
   

dtindill!

 

I just had to register to say THANK YOU!!

 

This has been bugging me for months, and when I decided to try to find information on the Web there was none, until this thread. Thanks so much for taking the time to come back and post the solution.

 

I'm greatly indebted! :smileyvery-happy: