If you want to power electronics with a generator, be sure to get an inverter generator for clean power.
As for UPS or generator - I ended up doing both. I have the TV and Tivo on a UPS, and if the power goes out I just go get the generator, fire it up and plug the UPS into it and everything continues seamlessly. A pellet stove is on its own UPS to allow it time to shut down, or I can power it with the generator also.
The generator is a Yamaha EF-2400IS (2000 watts) - it's super quiet.
I also have a Generac 6500 watt generator for powering a well pump - it's just brute force and danged noisy. I've only used it twice in 12 years - pain in the butt to hook up. I need to get a transfer switch for it, but it's hard to justify - having only needed it twice in 12 years.

And yes, I know how to isolate it from the line when it's in use!
BTW- I don't keep gas in the Generac, I store it dry. Much easier than managing fuel in it. I take it out once a year and run it for about 30 mins - until it starves, then I drain the carb bowl. The Yamaha gets exercised twice a year but gets a bit of Sta-bil.
For you radio heads (that would be me too!), this is a great way to do batteries for powering ham rigs and scanners:
West Mountain Radio - Super PWRgate PG40S
One side has the battery, the other side a 12v supply and the power switches seamlessly from one to the other. It has a built in charger (high amp - but you can select the rate). Combine this with an AGM battery and it's perfection (AGM batteries need a higher voltage - 14.5v to stay charged, so you need a power supply that is adjustable to use them)