When I lived somewhere prone to power outages, I simply bought a big-ass diesel generator. A diesel generator typically uses an old school diesel engine and they will run forever.
Places that need 100% up-time (hospitals, pumping stations etc) seem to regularly replace perfectly good generators. I presume they do this at x-hours.
Point is, from time to time these generators come up for sale.