I want to restore my iPhone, and want to know how to back it up before doing so. My main question, how do I back up everything including the apps I SSH'ed and the ones I installed through Cydia?

I Jailbroke and unlocked it, and then used BossPrefs which messed up my EDGE, so now I have to restore. So be careful not to disable edge using BossPrefs.