Whole document is get corrupted in writer when power goes

Suppose the user is working on libre office writer and suddenly the power is gone and the user does not have UPS installed in his PC, the whole document is get corrupted and we have tried but could not recover the data. There is one option in lbre office for auto document saving in another location but that copy of document is also get corrupted.

Menu/Tools/Options/Load-Save/General - Save

If your power grid is that unstable you want to invest in a UPS. Goto @Mariosv page and set the autosave time to 1 minute.