I use a portable generator when the power goes out for an extended time but I have to be home in order to do this.
If you want power backup to go on automatically - it can get really expensive. I checked into this option thru Generac and it was going to cost upwards of $10,000 so I opted for my little portable unit that only cost me $500. Used it recently and worked like a charm.