Hi,
I just installed Automysqlbackup.sh to my server. I wonder what cron job command should be to run it everyday ?
Note: i will set cron job from Cpanel
Path to script is: /home/username/automysqlbackup.sh
Thanks in advance
From serverfault
Ahmet vardar
-
0 0 * * * /home/username/automysqlbackup.shThis will run the job every night at midnight.
Here's what that job would look like in cpanel:
Ahmet vardar : didnt work. it works when i execute it from SSH but with cron it didnt work :(Ahmet vardar : by the way, i set cron from CPANEL, not from SSHErikA : I've edited my answer with a screenshot from cpanel.From ErikA -
On my Ubuntu 10.04 LTS server, automysqlbackup.sh included a cronjob. This is what it looks like. It's very simple.
$ cat /etc/cron.daily/automysqlbackup #!/bin/sh test -x /usr/sbin/automysqlbackup && /usr/sbin/automysqlbackupSo, automysqlbackup runs as part of the Daily cronjobs. The schedule for the daily cronjobs can be seen in
/etc/crontab.From Stefan Lasiewski
0 comments:
Post a Comment