I’d like to set up our well pump so it can be run off of a generator in an emergency. Currently there is a 30A breaker in a panel in the field (near the pump), from there it appears to run to the on/off switch box for the pump, from there to another box with a couple fuses and from there I believe it runs to the switch and pump. My thought is to dig up the wire between the main panel and the on/off switch, install a 30A plug on the side going to the on/off and a 30A receptacle on the side going to the panel and mount it on a post. From there the normal operating state would be the plug into socket to keep the connection similar as it is today. In an emergency, I could plug the on/off switch directly into a generator to run the pump.

Has anyone done anything similar? Am I way off base here? Any advice would be greatly appreciated.