Results 1 to 2 of 2
i have created a file named "backups.sh" to take a backup of mysql db.
/usr/bin/mysqldump -A -u [username] -p[password] | gzip > /backups`date +%m_%d_%y`.gz
And set crontab.
10 * * ...
- 12-31-2009 #1Just Joined!
- Join Date
- Feb 2008
- Location
- Kochi-India
- Posts
- 9
backup with cron
i have created a file named "backups.sh" to take a backup of mysql db.
/usr/bin/mysqldump -A -u [username] -p[password] | gzip > /backups`date +%m_%d_%y`.gz
And set crontab.
10 * * * * /root/backups.sh
But didnt take backup.
i had run /etc/init.d/cron start.
i use ubuntu
what the problem with me????????any help...
- 01-02-2010 #2Just Joined!
- Join Date
- Dec 2009
- Location
- Highlands
- Posts
- 37
I've forgotten all about cron. Isn't there an easier way in Ubuntu?
• Write your script.
• Test it.
• When it works, copy it to:
/etc/cron.hourly
/etc/cron.daily
or whatever
Maybe you check the queue with "atq", or the modern equivalent?
.


Reply With Quote