by tankenmate · 2y ago · 0 comments
Of course every sane person runs their default system clock on UTC and lets users pick their own local time. That way cron always does the "right thing"(TM).
But what if your cronjob has an effect in the physical world, locally? E.g. open the parking gates every morning.
The world is inherently messy :-)
If you must run it as root, you can specify a CRON_TZ variable on a per-file basis, which will override the default.
Making a backup is usually reserved for the quietest hours of the morning, so that it does not compete as much for resources with the normal operation of the system; in my experience, the quietest hour is usually around 4:00 local time.
[0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019716