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...