You can build a UPS yourself that will use several marine type batteries that will run the powerheads and heaters for many hours but it can get expensive, I looked into it a few years back and found it was going to cost me about $800.
I went years without a power outage and have always kept a small gas generator on hand if it's needed, The generator cost me $300 and I can run it for days at a time.