guys here is how to connect a 220vac / 12vdc relay so that it DISCONNECTS the 100Ah battery from the UPS when the MAINS comes back ON. allowing your normal battery charger to charge the 100Ah battery.
the UPS battery charger will still charge the UPS's battery.
Bad idea.
1) The UPS will not switch back to utility power immediately, thus, you run the risk that you can actually kill the power to your load,
2) It's a VERY bad idea to connect/disconnect a battery whilst it's under load,
3) Most relays are only rated for 15A across the contacts. Batteries uses much higher currents. Your relay contacts will burn, and eventually it will either be "stuck" in a off position, or in a on position.
A 100A+ Contactor, with a delay timer may be a better option.