UPSs are really only to shutdown your devices gracefully, for something to stay on for hours it is best to get something like an inverter, you can perhaps have a read through on this topic: Uninterruptible Power Supply
5 Likes