In the countryside, a UPS is a must.
I find they last about 2 years. Not the batteries - they have a poor life probably because they are inside a warm box. The electronics just pack up. Often it won't charge the batteries. Or some other fault.
APC are the worst. EATON slightly better. Powerware maybe better on average. I have one huge unit, must be 2000VA, that's been running for about 15 years. The small ones last maybe 3 years.
The batteries in them tend to be either no-name or "Yuasa" but the Yuasa-labelled ones must be fake because the cost of real Yuasa ones is close to the cost of the UPS

Compared with the above, most IT hardware lasts for many years, especially when left on 24/7. I have a programming station PC here, running DOS 6.22, running since 1995 (on a Data I/O Chiplab programming station). Hard disk, too!