UPS will help but if its an double conversion design, the smaller UPS has can handle of plus of minus 10% ( 240va )which is not enough to protect your equipment during a high voltage spike or surge, An AVR or Stabilizer can help better but it will not provide backup power.
And a UPS is not an alternative power source, it will only protect your equipment from bad power and provide clean power ( depends on Technologies) u should always save and shut-down your equipment when there is a power failure,
How on earth did the high voltage hit your electrical system when you had the DB ( Trip- Breakers/Fuse )