Firefox Environment Backup Extension, better known in the community as FEBE is a Firefox extension that has served me well for a long time now. It does as its name would suggest, you are given the option to selectivly backup elements of your profile, or the entire thing. Mine has been scheduled to do so every evening, keeping at least a weeks worth.

via stevey[dot]eu / FEBE - Backup your entire Firefox profile!.