The best way to do this would be to have your essential services fed from a seperate CU.. In the feed to this CU fit a changeover switch,, the only problem could be your earthing(???)
Ideally, and if your genny is up to it? you could have the lighting, boiler, fridge / freezer and maybe a...