One of three choices:

1. Don't ever power off.
or
2. Use a battery and never remove it.
or
3. Don't use TMR module of the PIC, use a RTC chip with a battery.


--------------------------------