Keep backup of settings file. Do write under lock.