Why do I have to burn the bootloader to my UNO r3 so often?

Post the sketch and a diagram of your hardware.

Does your RTC have battery backup?. Provide a link to the RTC you are using.

Mark