This bash script, in conjunction with a java program, will backup your mysql database(s) to a file using mysqldump, and gzips it. Depending on setup, it will either e-mail you the file, or leave it in the installation directory.
Tools for Java Jini setup, troubleshooting, and development. Development has been moved to the Toolbox project on www.jini.org (http://toolbox.jini.org).