Any electricians in the house?
20 years in military and 18 years with GTE doing UN-interruptible power supply systems for Telephone exchanges. Commercial power goes to an inverter/rectifier that converts line AC to 54 Volts DC. This charges a HUGE battery bank. When commercial power drops the whole telephone exchange goes on battery in milliseconds. Then the huge 12 cylinder Turbo Cummings Generator fires up (Super size Telephone exchange). When the Gen gets warmed up, it auto switches the system off battery, again in milliseconds and the gen runs the inverter/rectifier to power the switch and charge the batteries.
At no time is commercial/battery/Generator touching each other, 100% isolated.
I have installed and maintained up to 5 racks of batteries like this below. That is 48 Volts (nominal) DC. About 1,500 pounds of Copper Buss bar.