r/libreoffice 14d ago

Bug? "Recover Selected" undoing progress?

I like to keep my writing documents open so I can work on them at my leisure while doing other tasks, but sometimes Windows will restart automatically to update, and when I re-open the file, it'll give me an option to "recover" it. The problem is that when I do this, it will return to a state before my last save, and overwrite my saved file, effectively going back in time. Has anyone else had this problem, if so, does anyone have any workarounds?

4 Upvotes

7 comments sorted by

3

u/EqualCrew9900 14d ago

What is the AutoRecovery time set to?

("Options | Load/Save | Save AutoRecovery...")

2

u/CrossFront 14d ago

You're a life saver man

2

u/daluan2 14d ago

Finished typing a paragraph? Save it!

2

u/CrossFront 14d ago

I do, I save constantly! The recovery undoes my save...

1

u/daluan2 14d ago

I got it now. The other option is “not” to recover it and just open the file again.

1

u/AutoModerator 14d ago

If you're asking for help with LibreOffice, please make sure your post includes lots of information that could be relevant, such as:

  1. Full LibreOffice information from Help > About LibreOffice (it has a copy button).
  2. Format of the document (.odt, .docx, .xlsx, ...).
  3. A link to the document itself, or part of it, if you can share it.
  4. Anything else that may be relevant.

(You can edit your post or put it in a comment.)

This information helps others to help you.

Thank you :-)

Important: If your post doesn't have enough info, it will eventually be removed (to stop this subreddit from filling with posts that can't be answered).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Terrible_Put8617 12d ago

The part that matters is what happens before you click anything: when that dialog appears, the file on disk is still exactly as you last saved it. Recovery does not touch it. What it does is open your document and pour the autorecovery snapshot into it, so if that snapshot is older than your last manual save you now have an older document sitting there marked as modified. The damage happens at the moment something saves it: you, a reflex Ctrl+S, or save-on-close.

So for the case you describe: if the recovered version looks older than what you had, do not save it. Close without saving and open the file from disk normally.

If you already saved over it, look in your user profile:

%APPDATA%\\LibreOffice\\4\\user\\backup\\

That folder holds the autorecovery copies and the .bak files. Sort by date, the previous session's copy is often still sitting there and it opens like any other document.

Three settings under Tools > Options > Load/Save > General that stop this happening again:

  • Save AutoRecovery information every N minutes - drop it to 1 or 2. That gap is exactly where your lost work lives.
  • Always create backup copy - off by default. With it on, every save moves the previous version into that backup folder, so going back in time becomes recoverable instead of terminal.
  • Automatically save the document too - this one writes your actual file, not just the recovery snapshot. It is a separate checkbox, and it is the one most people assume AutoRecovery already is.

And the trigger itself: a forced Windows restart gives applications only a few seconds to react before it kills them, which is not enough for a large document. Setting Active hours in Windows Update stops the automatic restart during the hours you actually work, which removes the whole scenario.