A trick I use for remote equipment installations is to purchase a battery-backed 12V power supply box made for access control and camera systems. You can snip off the wall wart and hard-wire any accessories that run on 12V directly into the overcurrent-protected terminals and only have one mains power cord.
One example:
https://www.amazon.com/EVERSECU-Channel-Cabinet-Regulated-Included/dp/B07VQSLGWR/
For 5V equipment, you can get either a small 12V-to-5V board on Amazon or install a 12V USB adapter.
They are no uncommon with DSL routers here in europe and I have seen quiet a few on the other side of the atlantic, like this fiber one which uses a sealed lead acid battery.
The ones I linked use lithium batteries and the first one is rated at 98Wh, which translates for a router using the max 12V/2A=24W to at least 4 hours. And as a router never run constantly at max power draw probably significantly more.
Why use these instead of a traditional UPS? The traditional UPS is a jack of all trades, these are more specific and possibly have better efficiency for their target(less conversions), smaller size and lighter, better life(lead acid vs lithium), no fan noise, cheaper, etc.
And lets not forget the 12V CCTV UPS to power multiple devices or PC ATX PSUs with integrated battery backup.