GalleryDatabaseExport provides the functionality to export the gallery database.
Creating an GalleryDatabaseExport object is the first step in exporting the information store in the Gallery databases. The export function exports all the versions.dat file, the config.php file, the tables for the modules and all the data contianed in a Gallery installation. The actual albums and items are not exported as part of this process.
For a complete backup, perform this export and then use the operating system faclities to back up both the g2data/album and g2data/backups directory.