Cron backup on wrong time?

kapstokje78

Verified User
Joined
Aug 31, 2010
Messages
13
Hi,

I setup a cron for the user backups on my vps in the reseller modus, but it's backupping 6 hours later than planned.

I setup the backup for 02:20 in the night, but the backup starts at 08:20 in the morning.
I checked the time on the server and that is set correct?

Any ideas?

Thanks
 
Code:
LANG=C date

Shows the correct date and time

Code:
Tue May 29 04:24:25 CEST 2012

and

Code:
crontab -l -u diradmin

shows:

Code:
20 2 * * *  echo "action=backup&id=1&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da[
 
What you see with
Code:
cat /etc/crontab
?

What if you temporary create a task

Code:
* * * * *  root LANG=C date > ~/cron.date

just add this line into /etc/crontab and wait a minute or two and run this

Code:
LANG=C date && cat /root/cron.date
 
Code:
cat /etc/crontab

Shows

Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

I updated the kernel this morning, and the backup hasn't been executed this morning.
I'll wait till tomorrow morning to see if the kernel update helped.
 
The update has been helping :)

This night the backup did the work!

Thanks for your effort.
 
Back
Top