This discussion is archived
0 Replies Latest reply: Jan 19, 2010 4:29 AM by 629006 RSS

shell script for DB backup

629006 Newbie
Currently Being Moderated

i have written some java code Database backup but there are some problems with that so now i need to write shell script for db backup.

what i was doing in java code i was running command like that
/usr/local/bin/tar cvzf /export/home/monitor/FILE_20091005.tar.gz FILES/*20091005.*
which compress the all *20091005* files (myisam table files)

but after compression file doesn't extract

so i have to write shell script for that ..... can any body guide me how can i write that kind of script and put it in cron job.