Admin Backup Cron Jobs not running?

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
In the Admin Backup/Transfer section, I've created a Backup Cron job to run daily at 3am, however the cron job is not running.

In this same section under Create Backup, if I choose the "Now" option it will run the backup job successfully.

But the cron job is not running at night. And if I select the specific cron job and click Run Now, the cron job still does not run.

How can I determine what is going on?


Screenshot here:

Screen Shot 2017-07-27 at 11.30.24 PM.png
 
Check to make sure cron is running on the system. I've occasionally seen it not be running, for whatever reason.

Also make sure that /etc/cron.d/directadmin_cron exists and is not empty. I believe backup job is run by dataskq, so make sure a line with that string in it exists.
 
Thanks for the info. I checked out everything you said and it's all correct and as it should be. I also followed all the suggestions here:

https://help.directadmin.com/item.php?id=107

If it matters, this is a fresh, new install of CentOS 6 with DA.

Cron is definitely running and dataskq is there.

Any other thoughts?
 
Just out of curiosity, what are you using to determine if the backup runs or not? File mtimes? A new message in DirectAdmin?
 
Just out of curiosity, what are you using to determine if the backup runs or not? File mtimes? A new message in DirectAdmin?

I should receive an email notification from DA when the backups are completed.

And when I check the backup location, there is no backup data.
 
Yep - both of those would work :)

You're using a non-standard backup config (normally it's all options selected, all users selected), and one thing I observed is that your reseller (or what I believe is the reseller, since it's obscured) isn't selected, tho the resellers' users are selected.

I can't help but wonder if DirectAdmin is skipping over those accounts because of that reseller being unselected. It might be worth enabling it to see?

Outside of that, I'd say it's possibly a bug and maybe you should open a ticket with DirectAdmin.
 
I have the same problem with ftp backup on the remote server.
In the Admin Backup/Transfer section, I've created a Backup Cron job.
Cron job log:
Nov 13 22:00:01 server CROND[28283]: (diradmin) CMD (echo "action=backup&id=5&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da)

In this same section under Create Backup, if I choose the "Now" option it will run the ftp remote backup job successfully.

But the cron job is not running at night.

How to fix it?
 
Back
Top