Buy a generator.
I have 3 gens for backup.
I’ll take a guess and say that at least one of them automatically fires up at a loss of grid power.