I live in Seattle and I was originally going to go with batteries. However, the half of the year when our power is most likely to go out is also the half of the year where there is very little sun. So for a prolonged outage I’d either need a lot of battery or a generator. For short outages, a battery made sense, but the cost was a lot higher.
I ended up with a 6.5kW portable tri-fuel generator instead. It cost me $1300 and I spent a little more for a plumber to add a gas stub to connect it to. I did my own electrical work which saved some money, but wouldn’t have been much more for an electrician. It can run my whole house indefinitely (obviously with some maintenance - it’s a small engine), except for the A/C which generally isn’t needed most of the year, and with some manual load shedding we can run the hot water too.
I live in the city and shouldn’t need any of this, but Seattle is poorly run so we have lots of outages from trees hitting things. Often a different transformer on the same block because the city will repair them but not take the time to trim the trees near the lines on the same block. I’ve had to throw some food away the last two outages (both in the last 6 months) so this won’t take long to pay for itself!