Conflicting timestamps in rsyncd.log

Eberhard Moenkeberg emoenke at
Mon Mar 2 01:48:14 GMT 2009


On Sun, 1 Mar 2009, Matt McCutchen wrote:
> On Sun, 2009-03-01 at 17:21 -0800, Bill Landry wrote:

> > I just setup my first rsyncd server and all is working well as far as
> > file syncing goes.  However, I am a bit baffled by the fact that some of
> > the log entries in the rsyncd.log file are entered in local time and
> > other are entered in GMT.
> This happens because the chroot done by the rsync daemon prevents glibc
> from reading /etc/localtime to determine the current timezone.  I'm not
> sure what is the "right" fix for this issue, but you can work around it
> using the new chroot+chdir mode in rsync >= 3.0.0.  E.g., configuration:
> [some-module]
> 	use chroot = true
> 	path = /path/to/chroot/./some-module
> Then copy /etc/localtime to /path/to/chroot/etc/localtime and put the
> module data in /path/to/chroot/some-module.  See also:

A nice workaround, but not a solution.
The daemon should get and export the timezone info before forking into 
the chroot environment.

Viele Grüße
Eberhard Mönkeberg (emoenke at, em at

Eberhard Mönkeberg
Arbeitsgruppe IT-Infrastruktur
E-Mail: emoenke at      Tel.: +49 (0)551 201-1551
Gesellschaft für wissenschaftliche Datenverarbeitung mbH Göttingen (GWDG)
Am Fassberg 11, 37077 Göttingen
URL:             E-Mail: gwdg at
Tel.:   +49 (0)551 201-1510            Fax:    +49 (0)551 201-2150
Geschäftsführer:           Prof. Dr. Bernhard Neumair
Aufsichtsratsvorsitzender: Dipl.-Kfm. Markus Hoppe
Sitz der Gesellschaft:     Göttingen
Registergericht:           Göttingen  Handelsregister-Nr. B 598

More information about the rsync mailing list