There is a procedure for replacing these batteries which does not cause the loss of the data.
It is hard to describe in writing but it involves temporarily soldering in a resistor to prevent the fresh battery draining into the old one... the procedure will be obvious to anybody in electronics.