Currently, I have a small inverter connected to the mains and powers all my important electricals, (alarm, cameras, gate, router, TV, etc ...), in case of a power failure, it lasts about 2 or 3 hours.
Years ago, I spent a lot of time making sure that the wiring was all nice and clean.
About...