Does anybody kn

Does anybody know any ideas to keep cameras recording during power cut to homebase? Was looking into UPS for router and cameras.