Is it possible to backup your Cydia Apps and jailbreak and restore afterwards?

I did this awhile ago on earlier firmware, maybe 2x

If so, what can I use

I will be using spirit to move up to 3.1.3

Thanks