Any electricians in the house?

I currently have two service panels fed by my meter base. One feeds the shop with a grid tied 18.6 KW Solar array, the other feeds the house. Both have a 200A Panel.

First, I'd like to install a portable generator input plug that will be able to allow the solar array to continue to produce when there is a power outage. This is to keep the us enjoying power while they fix whatever caused the outage.

Scond, I'd like to install a battery array to allow me to store some of that power, if the grid goes down. Is it possible to store solar generated power form panels that have micro inverters on the panel?

TIA!

j