mysql backup / restore
exports given database to a textfile which can then be zipped and downloaded or sent somewhere (mailing pending)
mysqldump -u <username> -p -q --single-transaction <db_name> > <backup_filename>
To restore the database (be sure to create the target DB before running this)
mysql -u <username> -p <db_name> < <backup_filename>
To backup and restore data only, use -t, no table data
mysqldump -u <username> -p -q --single-transaction -t <db_name> > <backup_filename>
Then restore from command line as usual.
mysql -u <username> -p <db_name> < <backup_filename>