Don't waste your money on a UPS, for long-term backup 6+ hours even more there extremely expensive. You can build one for half that, this is what I use.
-Relay 120VAC coil and 3pdt (3 Sets of NO/NC contacts)
-150W Inverter (You need to get an inverter that has a watt rating of your requirements to drive your equipment; this rating is at a 120VAC level.)
-12VDC charging circuit, preferably from a Fire Alarm, or Security System, I like these because they continually monitor the battery voltage and charge them at a slow rate when its needed, altronix is a good brand to get)
-Case to put the inverter, relay, and charging circuit into.
-2, 12V 55AH batteries is what I use, I also used sealed lead acid (otherwise known as gel cell, there more expensive but do not release toxic and explosive gases like other car batteries and marine batteries do)
If you parallel these batteries together you'll have 110AH. Which is 11AH at 120VAC, you have to increase anything ten fold when you go from 12VDC to 120VAC.
So if you have 150 watts of current draw at an 120VAC level, this would be 1.25 Amps at 120VAC (Watts / Volts = Amps)
Now take this and times it by ten to get your 12VDC amp draw per hour. Which are 12.5.
Now 110AH divided by 12.5AH and we get 8.8 Hours, now no inverter or electrical circuit works at 100% efficiency so now times this by roughly 85% will throw in a security factory too, and we get 7.48 Hours of back for 150 Watts.
For my small 30G aquarium this is more than enough and a outage rarely lasts longer than that, at that point I would just plug the inverter into the car, and back it up this way.