View Single Post
Old 6th January 2013, 01:50
chmadk chmadk is offline
Junior Member
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Since nobody ddid anything i did it myself..

i know it may not be the best way to do it.. but now it works for me at least !
From line 550 and forward.. this fixes the restore script if you keep getting the -x is not valid blah blah.
for i in $arh ; do
                rdb=`echo $i | cut -d "-" -f2`
                edb=`echo $i | cut -d "." -f1`
                $TAR $EARG $BACKUPDIR/$YDATE-$MDATE/$i
                mysql -u$dbuser -p$dbpassword $rdb < $edb.sql
                rm $edb.sql
Reply With Quote