I have modified this tool that's included with FOG, and made it so users who have FOG on Ubuntu can backup FOG. I have tested this on the 64 bit versions of 10.04 LTS and 11.04 Ubuntu and works on both. This tool will backup your Configuration settings, your MySQL database, your Snapins, and all of your Images. Here are the minor changes made:
1. This will no longer backup the reports section, it will backup all the config files in /var/www/fog.
2. This will also backup the install folder as in the extracted fog_0.32 folder that's extracted. This will save time from having to download the new copy if you are migrating servers etc. However, in order to do this, you need the fog_0.32 folder located on the server and you will have to manually enter the file path within this file.
I have tested this on my private FOG server and verified that it works, I will be working on another file to be able to move everything back automatically as well.
To run this file, simply type ./FOGBackup.sh (destination directory) *Note the destination directory must exist.