Quite a lot of Firefox users know this but there might still be a couple of people out there who do not know of this little tweak.
Saving Bookmarks
To back up your Bookmarks,
-Open Firefox
-Click on Bookmarks
-Click on Organize Bookmarks
-Go to Import and Backup
-Select Export HTML…
-Save it anywhere as a html file and you are done.
When you want your bookmarks back after a reinstall, simply import this file in the same way you exported it.
Backing up Saved Passwords
-Go to Documents and Settings > USERNAME > Application Data > Mozilla > Firefox > Profiles > cxhmjww8.default (this name is random)
-Backup the following files
+key3.db
+signons2.txt (if you’re using FF 2.0+)
+signons3.txt (if you’re using FF 3.0+)
+signons.sqlite (if you’re using FF 3.5+)
These files contain data regarding your saved passwords. After a reinstall, overwrite these files back to this folder.