Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Just sync to computer like normal. It should automatically make a backup of the 2G. Then plug in i4 and select restore from another iPhone and you're set. I found it to be perfect. It even kept the webpages I was browsing and even my numbers on my calculator.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.