Hi,
I am not sure to be in the good section.
I need your help to use Cron. I am sorry to bother you but I am completey disapointed.
My webservice provider use DirectAdmin
I'd like to save daily my huge database everyday and I have many questions.
Cron is certainely the best.
What extension the script must have? I've found some scripts but I am not sure of the extension? (I am running windows vista on my local pc)
Here's the script
Do you know a link to a good tutorial for a newbie user?
Do you know a good place with a script to save database daily?
Thanks for your help
Bruno
I am not sure to be in the good section.
I need your help to use Cron. I am sorry to bother you but I am completey disapointed.
My webservice provider use DirectAdmin
I'd like to save daily my huge database everyday and I have many questions.
Cron is certainely the best.
What extension the script must have? I've found some scripts but I am not sure of the extension? (I am running windows vista on my local pc)
Here's the script
Code:
#!/bin/sh
USER=xxxxx
PASS=xxxxxxxxxxxx
DESTINATION=/backup/daily/mysql
DATE=`date +%Y-%m-%d`
TIME=`date +%H:%M`
DAY=`date +%d`
DEL=`TZ=CST+24 date +%Y-%m-%d`
mysqldump -u $USER --password=$PASS base | gzip > $DESTINATION/base-$TIME.$DATE.sql.gz
rm -rf $DESTINATION/*.$DEL.sql.gz
Do you know a link to a good tutorial for a newbie user?
Do you know a good place with a script to save database daily?
Thanks for your help
Bruno