I had a 20 year old APC start misbehaving on me a few months back, and new batteries didn't fix it. After messing up the repair on the first one, a second one started doing the exact same thing, and I immediately took it apart and, now an expert on how not to fix them and what the root cause was, I swapped every cap on the board that my ESR meter claimed was bad. It's now back in operation, and while I was testing it, I realized it's so inefficient that about 10% of its max rating is just going up in heat. The replacement for the first one, I assumed, would be much more efficient, and it is, but it's still dumping about 7% of its energy into heating the transformer.
OTOH, the older UPS behaves much better with apcupsd, going so far as giving me the firmware versions, battery replacement times, better power monitoring/etc. While the new one works its missing most of what the older UPS could do (although its not a APC).
So, i'm sorta on the fence about just using "backup generators" from Amazon/etc because one of the ones I have has about 5x the capacity of the new UPS and seems to be able to switch without the computer plugging into it having an issue. Plus, its power waste is less than 1%.