2 # undump a provision directory
5 echo "Usage: undump.sh <DIRECTORY> [TARGETDIR] [TDBRESTORE]"
17 TARGETDIR
=`pwd`/$dirbase
25 for f
in $
(find .
-name '*.dump'); do
26 dname
=$TARGETDIR/$
(dirname $f)
28 bname
=$
(basename $f .dump
)
30 echo "Restoring $outname"
32 $TDBRESTORE $outname < $f ||
{
33 echo "Failed to restore $outname"