UPSes aren't meant to keep things running for long periods of time.
If you're trying to keep things on for hours, you need a generator. Then the UPS just needs to keep things running until the generator comes online.
I suspect it'll be a lot cheaper to get a small generator than it would be to buy enough UPS and batteries to run things for multiple hours.