I have an external outlet box near where I run the generator. And on my main panel, I have a generator interlock switch. I have a 30 amp setup, but ran wire able to handle 50 (I just have to change the panel breaker, and the outlet in the box to match).
For anyone who isn't aware, a generator interlock switch is a plate that is mounted to your panel box cover that prevents you from turning on the generator's breaker (to back feed the panel) without shutting of the main breaker (to prevent you from back feeding the grid which can kill people). They are panel specific, so you have to order the correct one, or design one for yourself. I mounted mine while my electrician ran the wire and outlet. I toughly tested to make sure that there was no way the generator's breaker could be on at the same time as the main, if you flip the generator's breaker it throws the main off, and the same goes for not being flip the main on without it shutting off the generator's breaker.
The beauty of this is you have the ability to select which circuits you want to power. For example, during the winter I want to power my heating system, in the summer I want to power the master bedroom's ac.
Luckily all my wall unit ac's are on their own circuits, so I flip them off to prevent anyone from using them (including my 220V 1st floor unit).
I do have to watch my neighbors to see when they get power back on, the last time, I was on my generator for at least an hour after the power came back on. The good thing is now my utility company as real time app notifications. So, when it comes back on, the meter lets them know, which sends a notification to the app.