[Server-devel] timestamps on backups

Hamilton Chua hamilton.chua at gmail.com
Thu Sep 17 07:55:11 EDT 2009


Hi Martin,

My responses inline ...

>  - Can you confirm date --utc is correct on the XS and on the involved XOs?

Yes, date--utc on both XS and XO's are the same if not close to each
other, the difference being a few seconds.

>  - If you look at the "datastore-<timestamp> directories - are the
> timestamps correctly in UTC?

Yes, the directory name uses the UTC timestamp.

>  - If you run tzselect, change the tz to your local tz -- does it fix
> the problem? If it does, is the problem fixed for "new" backups or for
> all backups?

The timezone of the system has always been the local tz.

> The PHP code in dsbackup.php should be ignoring timezones, but
> something might be sneaking in. Also - the timestamp in the dirnames
> may be wrong.

I checked the directory names and it seems they are correctly UTC. It
appears that the problem is just the calculation involved that returns
how long ago the backup was. It seems the time() function returns the
epoch based on the local timezone instead of the epoch based on UTC.

Best,

Ham





More information about the Server-devel mailing list