Daily admin backup does not run

cbolt

Verified User
Joined
Feb 6, 2008
Messages
28
Hi

I have an admin backup set to run early each morning.

Since upgrading DirectAdmin to the latest release the backups are no longer processed.

I know that cron is working because I see this in the cron log:

Mar 29 02:00:01 da2 /USR/SBIN/CRON[13949]: (diradmin) CMD (echo -e "action=backup&id=1&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da)

But the backup is never started.

If I log into DA and start a backup now, it works, only backups set on a cron schedule do not work.

Any suggestions?

I'm running Debian if that helps.
 
I just found there is an error log for the DirectAdmin task queue.

It has this in it:

2011:03:29-02:00:01: executeCommand:invalid action: -e action=backup&id=1&owner=admin

Any ideas?
 
Yeah I did try deleting the task and adding it again, but I had the same result. I will contact DirectAdmin support as suggested.
 
Hello,

I have a feeling it's because of /bin/sh -> dash.
Confirm first:
Code:
ls -la /bin/sh
Check to see if you have /bin/bash, and if you do, type:
Code:
ln -sf bash /bin/sh
which will tell Debian to use bash instead of dash. "Dash" is the Debian shell script, but it's very feature limited and it has it's own built in "echo" command which doesn't support -e, hence the error.

John
 
Back
Top