Eliot covered the original question about backing up the MySQL database. You would also need to backup the /home/account/webmail/data dir if you want to do a complete GM backup. Overwrite the templates when you upgrade as they tend to have a lot of bug fixes in them.