An uninterruptable power supply (UPS) is a type of backup battery that will continue to provide electrical power to the electronics that you have plugged into it even if electricity from your home outlets cuts out. Unlike a backup generator, it does not need to power up in order to start generating power. In other words, if you experience a power outage in your area, your machinery should not shut down if it is plugged into a UPS battery backup.
Many models of uninterruptible power supply USP also provide surge protection. A surge protector blocks spikes in voltage so that they do not harm your electronics. So, your battery backup is always at work, protecting your desktop computer, network equipment, or other electronic equipment and charging its battery when not in use.
While UPS power is great for avoiding a sudden shutdown, you should not expect it to power your equipment for long hours without additional electrical backup, such as a generator. The main purpose of a UPS is to give you time to switch to alternative power or properly shut down your machine.