Performing a backup would have prevented the loss of data/settings, no?