Locked iPhone backup
How do I backup iPhone 4s that I forgot the passcode to. I know how to reset the iPhone (no technical noob here.) I am on iOS 5.1 if that helps. I need the backup before the iPhone is reset because I have data on it I want to keep. Please mention every solution possible and thank you in advance.
iPhone 4S, iOS 5.1