Basic UPS Circuit
This circuit can be adapted/modified for other regulated and unregulated voltages by using different regulators and batteries. For a 15 Volt regulated supply, you may apply two 12V batteries connected in series (it will become 24V) including a 7815 regulator (will be 15V stabilized voltage output). There is a lot of flexibility in this circuit.
The complete explanation you can view this page.