I bought an old used APC UPS from a used computer dealer, the battery was dead and needed to be replaced. I then wired two marine deep cycle batteries to this (I was able to find one with a 24 volt inverter) 1400 APC UPS. I am able to run two powerheads for at least 8 hours, which keeps my two large tanks up and running and oxygen levels up.
I invested around $50.00 for the used UPS and spent the major money on some really good deep cycle marine batteries, as well as float chargers. Having a 24 volt system, I am told will help run the system for longer periods of time.
I lost some very close fish I had for a really long time, due to a faulty timer....Throw away those analog round dial timers.......it's only a matter of time before your power is cut off when the lights try to come on of go off, they are crapola!!! I researched a lot of this before trying it and it works great, not even a flicker when the power changes.
I actually went a step further and rewired my house so each outlet to my aquariums is on a separate circuit breaker and I use at least two pumps now per tank to keep water flowing, one of these is on the UPS. Triple backup...So, I would have to have a complete power loss for the UPS to kick in.
This project was well worth the money invested, just too late for me...But my new fish will appreciate it!!! I can drop you some pics or give more details if needed!
Mike