If you are talking about backing up jailbreak apps then grab an app from cydia called aptbackup.
It takes a listing of all your jailbreak apps and stores it with your regular backup in itunes. Then after you upgrade just reinstall aptbackup, hit the restore button and all is as it was before.