The answer is somewhere in the neighborhood of as much as one can safely store and afford accepting that batteries have a short life. Much like wells in cold climates the batteries should be in an underground insulated vault made from higher quality concrete as to keep fire hazards away from the home. That is also where whole-home generators and fuel belong, in their own vault so they can be easily maintained without having to rent an excavator to dig out the tank.