upgrading to ios4 with jailbreak

I have a jailbroken iphone 3.1.3. When ios4 is available and I decide to upgrade (that will be when you can jailbreak that), how do I go about doing it? I'm new to the jailbreak iphone noise and would like some advise. Thanks
You have to restore to the new OS, and rejailbreak. I suggest getting an app like AptBackup that will "backup" your jailbreak apps and help to reinstall them after you re-jailbreak the new os.
You have to restore to the new OS, and rejailbreak. I suggest getting an app like AptBackup that will "backup" your jailbreak apps and help to reinstall them after you re-jailbreak the new os.

That was my main thing. THANK YOU SO MUCH! I've searched for this and couldn't find it.

Original thread: https://forums.imore.com/threads/upgrading-to-ios4-with-jailbreak.191207/