problem creating backup

sifro

Verified User
Joined
Oct 3, 2010
Messages
26
Hello,

i started a backup (not by cron) and i got this message:

"
Backups added to Queue
Details
You will be notified via the Message System when the process is complete
"

The problem is: after 1 day i have no backups and no messages!

I also setup a few crons: how\where can i see them? They are not in /usr/local/directadmin/data/users/username/cron.conf ! (But they appear in the panel)

I'm using Ubuntu Server
 
Have you thought about the possibility that crond is not running?
 
Each user has it's own cron file in /var/spool/cron/{username}.

in /var/spool/cron i only have a directory called "crontabs" with a file called diradmin.

Here's its content.. I guess it's fine:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (./data/admin/da_cron.tmp installed on Wed Oct 20 10:46:47 2010)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 11 20 * * echo -e "action=backup&id=3&owner=simone" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod
600 /usr/local/directadmin/data/task.queue.da
0 2 * * * echo -e "action=backup&id=1&owner=simone" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 60
0 /usr/local/directadmin/data/task.queue.da
0 5 * * * echo -e "action=backup&id=2&owner=simone" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 60
0 /usr/local/directadmin/data/task.queue.da


As far as your other problem, can you see that DA is running a backup from CLI?

How should i do that? Can i try to start a backup from CLI? How?

Have you thought about the possibility that crond is not running?

ps aux | grep cron
root 22021 0.0 0.0 2308 820 ? Ss Oct20 0:00 cron

So it should be up and running, isn't it?



Thanks!
 
Is the Directadmin service running?

For starting a backup process from CLI:

Code:
echo "action=backup&type=user&value={user}" >> usr/local/directadmin/data/task.queue
 
root@vtswebservices:/var/spool/cron/crontabs# ps aux | grep directadmin
nobody 1642 0.0 0.0 7768 328 ? S 14:13 0:00 /usr/local/directadmin/directadmin d
nobody 1646 0.0 0.0 7768 328 ? S 14:13 0:00 /usr/local/directadmin/directadmin d
root 18425 0.0 0.0 1160 232 ? Ss Oct15 0:03 /usr/local/directadmin/da-popb4smtp
nobody 19472 0.0 0.0 7768 1012 ? Ss Oct15 0:00 /usr/local/directadmin/directadmin d
root 20450 0.0 0.0 3256 784 pts/0 R+ 19:16 0:00 grep --color=auto directadmin
nobody 26332 0.0 0.0 7768 328 ? S 14:06 0:00 /usr/local/directadmin/directadmin d
nobody 26337 0.0 0.0 7768 328 ? S 14:06 0:00 /usr/local/directadmin/directadmin d
nobody 26342 0.0 0.0 7768 328 ? S 14:06 0:00 /usr/local/directadmin/directadmin d



I tried your command:
root@vtswebservices:/var/spool/cron/crontabs# echo "action=backup&type=user&value=simone" >> /usr/local/directadmin/data/task.queue
root@vtswebservices:/var/spool/cron/crontabs#

... nothing happens!

cat /usr/local/directadmin/data/task.queue

gives this result (pasting only the last lines):

action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=simone&select%30=admin&select%31=valentino&type=admin&value=multiple&when=now&where=local
action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=simone&select%30=valentino&type=admin&value=multiple&when=now&where=local
action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=simone&select%30=luciano&type=admin&value=multiple&when=now&where=local
action=backup&type=user&value=simone
 
Are the backup files being created in the home dirs of the users? Maybe the message system is just not functioning but the backups are there? Is it a lot of data that you're trying to backup?
 
If the file exists

/usr/local/directadmin/data/task.queue

then crond is probably not running.
 
Are the backup files being created in the home dirs of the users? Maybe the message system is just not functioning but the backups are there? Is it a lot of data that you're trying to backup?

nope, small websites, and nothing in the homes of the users..

If the file exists

/usr/local/directadmin/data/task.queue

then crond is probably not running.

Well, how should i check it? Indeed ps aux tells me that cron is running, don't know if it's different than crond:


root@vtswebservices:~# ps aux | grep cron
root 22021 0.0 0.0 2308 820 ? Ss Oct20 0:00 cron
root 26554 0.0 0.0 3256 780 pts/0 R+ 23:44 0:00 grep --color=auto cron
 
nope, small websites, and nothing in the homes of the users..



Well, how should i check it? Indeed ps aux tells me that cron is running, don't know if it's different than crond:


root@vtswebservices:~# ps aux | grep cron
root 22021 0.0 0.0 2308 820 ? Ss Oct20 0:00 cron
root 26554 0.0 0.0 3256 780 pts/0 R+ 23:44 0:00 grep --color=auto cron

Maybe the cron for DA has been modified or deleted.
 
What backup do you run: System Backup or User Backups?
If the first one, please check logs via Directadmin or SSH (/usr/local/sysbk/status.log).
If you're short of disk space or your LA is too high, backup will be aborted.

Also you can check DA's logs:
/var/log/directadmin/error.log
/var/log/directadmin/errortaskq.log
 
Maybe the cron for DA has been modified or deleted.

Would be pretty strange as i don't remember i did any modifications... anyway, how should i proceed to verify this? Where's this file? Can i restore the original one?

What backup do you run: System Backup or User Backups?
If the first one, please check logs via Directadmin or SSH (/usr/local/sysbk/status.log).
If you're short of disk space or your LA is too high, backup will be aborted.

Also you can check DA's logs:
/var/log/directadmin/error.log
/var/log/directadmin/errortaskq.log

User backups.

There is no errortaskq.log and error.log doesn't show anything interesting regarding this problem in the last weeks.
 
Back
Top