Of course a Generator (appropriately sized) is your best option.
- Gasoline is a pain for various reasons (Getting gasoline during power failures may not be possible, and storing old gasoline for a rare-power outage isn't ideal either, especially with Gasoline with Ethanol during winter.
- Natural Gas work better since unlimted fuel
However here is a idea I'll toss out, that a bit different than a All in One Computer Type UPS.
For my Setup, I do have an inverter with
auto switching (Kicks in automatically when power goes off, and resets back to power when restored) like a typical UPS, but I got a
Camper Inverter and added my own 12 Volt Car Batteries.
Amazon product ASIN B0012R2OWC
The one above I got on sale for like $180. (battery was extra)....
Nice feature is it has a Built in GFCI outlet to prevent shock if there is a water accident.
Plenty of choices depending on
your Wattage requirements on bare minimal survival running mode. That is what you need to figure out first.
These below models I think don't automatically switch over when power goes off. You have to plug things in.
Amazon product ASIN B08DL84SJD
Also you will note some inverters are true sine wave, while other modified sine wave. That's something to consider depending if you have AC or DC pumps. I have modiefied sine inverter and AC pumps work.....but it's not always the case for every appliance.
Depending on Load and Power of inverter and battery it does Works for
short outages if heaters on the circuits, but to keep a few pumps going it does the job for much longer.
Keeps my internet router powered up as well so internet stays up.
Automatically switches to Battery if Power goes off, and of course charges the batter when power is on.
With Inverter like above, you don't have a built in Small Battery limitation like a all in one inverters with limited sized cases.
It all depends on your space and budget, and how much $ livestock you are trying to protect from Long or Short Power outages.