I use a UPS and a generator. There is no other way than to replace the power, somehow, during a blackout.
I also use a VPN to view the cameras remotely. Port forwarding is an invitation to be hacked, not necessarily to steal information although that happens far too often, but to have your...