I have set up a LAMP server remaster of Knoppix 3.3
See

http://truth.positive-internet.com/~...0412intro.html

and

http://truth.positive-internet.com/~...astering1.html

For my Toophpix distro I put the following scripts in the /KNOPPIX/usr/local/bin/
directory, linked to Desktop icons

For save to USB the commands I am using are:
(Desktop icon runs sudo /usr/local/bin/saveToUSB)
and
#!/bin/bash

# Back up toophpix data to USB device.
modprobe usb-storage
mkdir /mnt/usbstore
mount -t vfat /dev/sda1 /mnt/usbstore
mysqldump --opt -u root toophpix > /mnt/usbstore/toophpix.sql
umount /mnt/usbstore


For restore from USB the commands I am using are:
(Desktop icon runs sudo /usr/local/bin/restoreFromUSB)
and

#!/bin/bash

# Restore MySQL toophpix database from USB device
modprobe usb-storage
mkdir /mnt/usbstore
mount -t vfat /dev/sda1 /mnt/usbstore
mysql -u root toophpix < /mnt/usbstore/toophpix.sql
umount /mnt/usbstore

The umount commands at the end help ensure that the USB device can be
mounted if the user clicks on the
Desktop icon (Hard-Disk Partition sda1) that appears once Knoppix has
booted up or when the USB device is identified when inserted.
toophpix is the name of the database that is backed up. I am sure these could be improved
upon.