Before you try this I'd have a read through the various UPS/Inverter threads on here and understand how the systems work.
Then figured out your load (i.e. the things you want to power, TV, lights, DSTV decoder etc.), say 400w.
After this find a UPS/inverter that is rated to handle the load (i.e. a 600w, 12v Ellies inverter). Bonus points if the inverter has a built in charger (in fact I wouldn't look at one without built in charger).
Then decide how long you want to keep the load on for (i.e. 2.5 hours) and work out the capacity of batteries you need (rated in Ah). You do this with the following:
- Load (say 400w) / inverter efficiency (0.8, or 80% for a modified sinewave inverter) = Actual load (500w)
- Actual load (500w) / Inverter voltage (12v in this case, can be 24v, 48v etc.) = You Ah requirement i.e. how many Amps you need to run the load for one hour (41.67Ah).
- 41.67Ah x 2.5 hours (your time requirement) = The capacity of battery you require (104.167Ah), however this assumes 100% Depth of Discharge (DoD) which will damage the batteries and dramatically reduce their lifespan (measured in cycles).
- 104.167Ah x 2 (because you only want to discharge to 50%, hence you need to double your available battery capacity) = 208.33Ah
To get this 208.33Ah capacity you can simply buy 2 x 12V 105Ah batteries and connect them to a 12V inverter in parallel (not series).
Now that you've got some terms and a brief explanation I'd suggest Googling and/or reading through the threads on here again.
Otherwise share your requirements here and we can suggest a tailored setup for you.