Hi,

my backup script is working when this run manually and in cron jobs. But
the script is not taking mysql dump when this is added in /etc/cron.hourly

++++++
while read x ; do
mysqldump ${x} > "/home/backup/TEST/${x}_`date +%d-%m-%Y`.sql"
if [ "$?" -eq "0" ]
then
echo "$x backup is OK" >> $STATUSFILE
else
echo "##### WARNING: ERROR #####  $x backup failed" >> $STATUSFILE
fi
done</etc/cron.hourly/dbfile
++++++++++

Also tried with mysqldump ${x} > /home/backup/TEST/${x}_`date +%d-%m-%Y`.sql
-- 
With Regards,
Ajeesh B.Kannan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to