Full system backup cron

phifgo

Verified User
Joined
Aug 14, 2007
Messages
5
good day !

I'm working for a Vietnamese ISP, NGT Corp. My current tasks are configuring ,, testingDirect admin for our lauchingHOSTING service and writing manuals for our system admìn . Now I'm trying to use the "Full System BackuP Cron" at the URL http://domain.com:2222/CMD_SYSTEM_BACKUP
and I note that the feild Day of The week accept values from 0 to 7 and "*"
as usual 0 reppresents sundays, 1 mondays.........6 saturdays and * corresponds to everyday
bu t i don't understand what does it mean ?
can u help me?

Thank u
Phifgo
 
Can you get a Vietnamese translation of the man manuals for the cron daemon? If so, that might be helpful.

But I'll try in English:

A cronjob is checked every minute. It's run if all those settings are matched.

So for example, if you want a cronjob to run at 4:00 am on Saturday you'll want to use 0 for the minute field, 4 for the hour field, 6 for the day field, and the * for every other field, as the * character matches everything, similarly to how it does in a directory listing.

I hope I've been helpful.

Jeff
 
Thanks

I understand what you sa7y, but why the value 7 is accepted=?
0 - sunday
1 - Monday
2 - Tuesday
3 - Wenesday
4 - Thursday
5 - Friday
6 - Saturday
* - everyday
But WHY does DA still accept 7 as correct value??????????
THAT'S WHAT I DON'T UNDERSTAND
 
I also found another trouble : when I insert a cron schedule record where the minute field is a value beetween 30&59..... It always shows me this error message:
"Details

Error setting the cron: "./data/admin/root_cron.tmp":1: bad hour errors in crontab file, can't install.

"
 
7 is the same as 0, they both mean sunday. They're both valid cron day values. You can use either one for sunday.

As for the "bad hours" I'm guessing it might be something to do with the encoding of the character if you're not using the english encoding.. hard to say for sure without knowing exact what the value of the chacter is being encoded as. If you wanted to find out, you can restart DA in debug mode and post the changes again.
Code:
cd /usr/local/directadmin
killall -9 directadmin
./directadmin b800
which loads you into a detailed debug mode..
Click "Save" again to enable the cron, and paste us what the value of the POST is that will be output to your display in ssh.

John
 
Read more about Linux, DirectAdmin is just a tool to manage user account ;)

Anyway i'm vietnamese also, you can ask me (private msg) in Vietnamese if you need help.

Nice day :-)
 
Back
Top