I'm not sure the school would let you install a backup generator because it would have to hook in to their electrical system if you want the automated cutover, and that means having a certified electrician do the work, pull permits, etc. An uninterruptable power supply only works for 10-15 minutes, just long enough so you can cleanly shut down sensitive equipment.
Maybe you could do something with batteries, an inverter, and a cutover switch - I have a system getting set up in my house integrated with solar panels - but batteries are not cheap. Even buying surplus/used equipment I'm putting several thousand into just batteries.
Perhaps you'd be better off monitoring weather reports and taking the critters home with you if a storm is predicted, assuming you have a heat source at home that doesn't rely on electricity, such as a wood stove or kerosene heater, so you can keep them (and you!) warm.