Some CCTV cameras anticipate the power either being cut purposefully or a power outage. These cameras have a backup battery and onboard storage so that they can still record for a time after the power has gone out. Usually the recording time and power for such devices is limited due to the limits of batteries.