This has been discussed so much, and I got reprimanded for my reply until I proved it's safe, no chance of feedback and living here 43 years and being without power maybe an average of an hour a year this works. I only connect my 9kW generator if I know power will be out for more than maybe 5-6 hours.
1) turn all breakers off...house, garage, stable.
2) roll generator to garage under overhang, out of weather but outside.
3) "suicide" cord generator to garage 240v welder outlet.
4) after gas/oil check run generator
5) welder and main garage breaker on only.
6) at house panel garage breaker on...then only what's needed, well, furnaces power, fridge, hot water heater. Stoves are LP. Main incoming through meter breaker STAYS OFF.
7) I check meter...if/when on, all breakers off, generator off.
8) unplug "suicide" cable...remember...all breakers and generator are OFF.
9) breakers back on garage, house main then other house breakers (no surge).
10) once cool, generator put away.
Now...I'm waiting for screams! No...my wife is very intelligent, she doesn't mess with things. No...we don't have unexpected neighbors, friends, family stop over flipping breakers with generator running.
And no...I'm not installing a disconnect to be used once every 10 years. And yes...I'll be happy providing anyone my county's inspection department or service provider's numbers providing it will be recorded so I can hear them making a dam fool of themselves!
No...I have no empathy for the UN-electrocuted workers since it's impossible for them to be harmed.