30A x 240V = 7200W. You can get up to 30 amps maximum on each opposing 120v leg up to 7200 watts total. It will not deliver 60A on one leg. 240v loads draw half their watts from each leg, so a 240 volt 4500 watt water heater will draw about 2250 watts from each leg allowing 2700 watts, 1350 watts available on each 120v leg.
So something that can deliver a little more than 7200 would be good, like this http://amzn.to/2wfnFUm .
A little explanation about ratings. The generator has a peak rating, normally the generator is absolutely not capable of delivering any more than that. The generator can deliver the peak for only about 15 seconds or so, then it will trip. The trip curve on a circuit breaker in your panel is a more lenient than that, it will allow 1.5 to 2 times the rating for 1 minute before it will trip, and it could deliver 1.5x the rating for 15 minutes and still be within UL spec. The issue is about heat, generators can overheat, so they use a pretty tight trip time curve, household wiring is de-rated to begin with, so the time curve can be more generous. What you want to prevent is motors struggling to start, slow turning motors overheat easily.
So if you want the most trouble free power available and budget is not too big of a concern then it wouldn't be completely unreasonable to get a generator with a 10,000 watt running capacity.
If budget is an issue, and you only expect a few hours at a time, then you could get away with less, you will just be limited to the total power available from the generator, and the breaker on the generator will trip if you exceed capacity preventing most damage. But be careful, some smaller generators like this http://amzn.to/2wG0sMc don't have a 240v connection.
I used a 5500 watt peak generator for 13 years at my last house. We often had wind storms that took down our power lines and it took several days before restoration. I could deal with it, only running minimal general purpose circuits, turning off fridges/freezers, and one 30 amp 2 pole breaker at a time. I could do it, but not my wife. (Turn on well pump, then well off, water heater for two hours, heater off, pump on, take showers, then turn on fridges.) Now we live in a house with gas appliances, and use a 3500 watt generator, I can only run one 1500w appliance at a time, the only thing I really can't do is run the clothes washer.