The technical starting position
Just turning on the recorder on the UPS does not retain a recording if the PoE switch or router shuts down at the same time. Conversely, a too small UPS can run out faster than expected.
An UPS can handle a short interruption, but only when the connected devices and desired time have been calculated in advance.

Just turning on the recorder on the UPS does not retain a recording if the PoE switch or router shuts down at the same time. Conversely, a too small UPS can run out faster than expected.
Inventory what should continue to operate during a power outage and how much power each component uses. Determine realistically whether you need minutes to safely shut down or longer continuity.
Choose an UPS for the required load and place it in a location accessible with sufficient ventilation. Only connect the scheduled critical equipment and label the power supplies.
Perform a controlled power test and measure how long the affected cameras, NVR, and network are actually functioning. Check for return to normal recording.
Only if external accessibility is desired during the transition and the internet provision itself remains available.
No. Autonomy depends on load and capacity.