View Single Post
  #102  
Old 13th April 2011, 15:20
clttech clttech is offline
Junior Member
 
Join Date: Mar 2009
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default update

I was able to get the backup-res to restore the directories. I had to mkdir /tmp/tmpbck I am running the script as root. Don't know why it will not create the /tmp directories.
Now when I try to run as root ./backup-res db all 2011-04-01 this is the error I get

date: invalid date `11/'
./backup-res: line 448: [: : integer expression expected

here is line 448
if [ "$RD" -gt "$ID" ] ; then

Restoring all mysql databases from date 2011-04-01 to local server:
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
All restore jobs done!
Database all restored to date 2011-04-01!
./backup-res: line 573: /tmp/tmpbck/maildata: No such file or directory
The data bases are not restored.

Thanks so much for you help and patient with me and the others.
Reply With Quote