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.