linux - Samba modifies "last modification date" of files substracting 3 hours -
i think weird , despite having done searching wasn't able find info related problem.
i'm setting backup server raspberry pi running raspbian communicate windows 7 pc. did program auto mounting external drive attached pi, after doing manual backup of files w7 pc. shared said mounting folder on samba , works great.
the thing want use program called synkron on windows can monitor 2 or more folders, detec changes , copy on new/modified files periodically. however, when press "analyze", programs lists files (in ext drive) obsolete, , i've discovered problem samba (or pi itself) changing last modified date of files, substracting 3 hours each of them. when remove drive pi , re analyze connected pc files normal , show ok.
this exact situation has happened 2 different sets of raspberrys, raspbian installations, external drives, windows pc , files. also, checked date on both pi's , correct every time.
what do? :/
the raspberry pi doesn't have rtc, every time loses power clock reset. pi relies on network time reset everytime boots. pi have connected internet happen.
also, make sure pi configured same timezone located in. can configure going through rasp-config
settings in terminal.
additional samba config options:
[global] time server = yes dos filetimes = yes fake directory create times = yes dos filetime resolution = yes delete readonly = yes
if above fails, try additional parameters:
[data] fake directory create times = yes
and if still, manually adjust time offset:
[global] time offset = 1800
warning: above has potential break after windows adjusts daylight savings time.
good luck.
Comments
Post a Comment