LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2005, 11:12 PM   #1
k41184
Member
 
Registered: Nov 2003
Location: Sioux Center, IA
Distribution: RH9, Fedora Core I,II,III
Posts: 37

Rep: Reputation: 15
Question Samba time-stamps files incorectly


I am running a Fedora Core IV server, fully updated, in my home for file backup.
I am using the program SyncBack 3.2.8.400 (free version) to backup the files from my Windows XP home laptop to my home directory on my server.
I have samba running fine on the FC box. On my XP box I have a network drive mapped to my share on the samba server.
I am synchronizing the files from my XP "MyDocuments" folder to the FC "Home" directory. When Running SyncBack, it looks at the time stamp on the files to determine which is newer, and keeps the newest ones. However, the problem is, when it looks at the files on my Samba share, it appears as if each file is 5 hours younger than the one on my Xp box. That is, if the file was made at 9:15:48 pm on my Xp box, then on the samba share is appears as 4:15:50pm on the FC box.
Any idea why this time descrepency? The result is that each time I run the "synch" it the SyncBack program wants to copy ALL the files again. THis is a waste of time.
Any ideas or troubleshooting tests I can try? Thanks.
 
Old 10-02-2005, 08:24 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
5 hour difference & you live in Iowa, Central Time, UTC -0500.

Sounds to me like you're getting hit by the fact that M$ defaults to setting hardware clocks to local time, while *nix systems normally use UTC & then adjust to local, including daylight time. Is your FC4 server set to use UTC on the hardware (BIOS) clock?
Code:
date ;  date -u
might be helpful in determining this. Otherwise, you will have to reboot & run the BIOS Setup routine to see what is actually happening.

There is always a chance that SyncBack is at fault, either a bug, or more likely it is not configured for Linux & its UTC clock. Please double check their docs to see if that is the problem.

Finally, according to my printed copy of The Official SAMBA-3 HOWTO and Reference Guide, adding something like "time offset = 300" to your smb.conf may help.

Reacp[list=1][*]What time zones are you PC's BIOS clocks set for?[*]Which of the time stamps is correct -- MS or Linux?[*]What do the SyncBack docs say about Samba & Linux?[/list=1]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - My Samba share changes the timestamp when copying files to it.. Preserve Time. hheejj Linux - Software 2 06-28-2005 09:34 AM
Anyway to get Stamps.com to work on Linux? Comptalk Linux - Software 1 05-03-2005 07:37 AM
Force samba client to enforce dos time stamps tisource Linux - Networking 2 02-06-2005 01:05 PM
Incorectly Specified interpreter Maurice Arthur Mandriva 0 09-07-2003 10:04 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration