The title makes me remember my raspberry pi camera I made for my apartment in 2011. I hooked it up to a simple USB powerbank at the time, and then the powerbank to the power outlet. Thinking if anyone cut the power to my apartment it would still record for 15 minutes.
Of course had anyone cut the power to my apartment it would have no way to upload the recordings because I didn't add a 3G failover.