Mozilla::Backup is a cross-platform, open-source set of Perl modules for locating, backing up and restoring the profiles of Mozilla-based software (such as Firefox, Thunderbird, Camino, etc.).
The latest release on CPAN can be found at http://search.cpan.org/dist/Mozilla-Backup/.
The SourceForge project page at http://sourceforge.net/projects/mozilla-backup/.
The CVS repository can be browsed at http://cvs.sourceforge.net/viewcvs.py/mozilla-backup/.