I have hourly, daily, weekly etc. backups of a mysql database run by rsnapshot. These are running regularly, but on the wrong schedule.
Here are the contents of /etc/cron.d/rsnapshot
:
5 * * * * root /usr/bin/rsnapshot hourly
30 0 * * * root /usr/bin/rsnapshot daily
35 12 * * 0 root /usr/bin/rsnapshot weekly
40 13 1 * * root /usr/bin/rsnapshot monthly
45 0 1 1 * root /usr/bin/rsnapshot yearly
However when I check the resulting files, it appears that the snapshots are being taken according to the 'hourly' schedule. For example, the daily.0 backup is named: /backups/daily.0/mysql/2021-01-02_22h05m01s_UTC-db_dump.sql.gz
You can see that that file was created at 5 minutes past the hour.
Why is the daily job, which is supposed to run at 00:30am each day, running at 5 minutes past the hour?
Of relevance may be this part of my /etc/rsnapshot.conf
:
retain hourly 3
retain daily 7
retain weekly 4
retain monthly 12
retain yearly 100