Would agree with Werewolf here.
I have a router and ONT (the modem) which is connected to their own UPS, switch which covers the entire household, phone, VOIP Box, and all that on a 900W/1500VA unit only just ekes past the 3 hour mark. For 24 hours just for your router, you're looking at needing to get units that provide up to 4KW to 8KW of battery backup power (so somewhere between £1.2K and £2.5K for that covereage at a minimum). The easiest as mentioned above is from a main unit that can connect extra batteries onto it. And that is assuming everything can be reached from one UPS backup unit.
Once you add other devices however, that time often drops hard, so you're better off re-working your battery backup solution if your budget doesn't allow for it instead. Such as keeping your power profile to always switch down as soon as power is off and no battery power. Or on desktop units to just stay shut off.
:: edit ::
For reference, I split the load so no UPS is never needing to power more than 30W or there abouts per hour. And we only get 3 odd hours of up time. Hence x8 of those for 24 hour protection means £280+ for each proper UPS unit (up to £2.5K), potentially less if a generator acting as UPS, etc.