-cp $statusfile $backupdb $restorescript $isomountdir
-if [ $? != 0 ]
-then
- echo "-E- Unable to copy the database and status file"
- exit -1
-fi
+cp $backupdbout $isomountdir/$(basename $backupdbin)
+[ $? != 0 ] && err "Unable to copy the database to $isomountdir"
+
+cp $statusfile $restorescript $isomountdir
+[ $? != 0 ] && err "Unable to copy the status file to $isomountdir"