Random delay for cron.daily, cron.weekly, cron.monthly

Wouldn’t it be nice if cron’s daily, weekly and monthly jobs could be run with a slight offset? At least that’s what I thought when 20+ servers were hitting my backup infrastructure at once. The scripts in /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly are triggered directly from crontab at fixed times. Here’s what /etc/crontab looks like in …

Adding a DS3231 Real Time Clock to the Raspberry Pi 3

Since the Raspberry Pi 3 doesn’t come with a battery-powered real time clock, it will only show the correct time onceĀ it has Internet connectivity (thanks to the NTP daemon). If the Raspberry Pi 3 is not connected to the Internet, you might want to add a hardware clock to set the current date. Here’s how …