DSL Tips and Tricks :: Backup Firefox bookmarks
Firefox bookmarks tend to disappear after a crash, so now I back them up to my harddisk (in my case, it's hda3...change to point to your own harddrive partition)
I typed this out and saved as "backup" in my home directory. To run, type: "bash backup" . Alter the location of the bookmarks.html file for your own setup; this was where it was placed by default on mine.
#####################################################
# !/bin/bash
# backup firefox bookmarks
cp /ramdisk/home/dsl/.mozilla/firefox/3mc6iz97.default/bookmarks.html /mnt/hda3
echo -e "Firefox bookmarks successfully backed up to hda3!"
######################################################
original here.