Sorry to hear about your losses
A generator is going to be your best bet to keep the essentials running. Mainly, you'll want heaters and some filtration. Of course, if you get a big enough one, you can keep other essentials in the house (like the refrigerator and a few lights) running.
A UPS (uniterruptible power supply) can work, but only for a short time on one or two things. It's fine if the power goes out for a few hours, but it won't work much longer than that.