power outage recovery using DS1307 Real Time Clock

Did you bother looking at the reference page?