Office software, documents & open source in South AfricaUpdated
Office Suites

Recovering Unsaved LibreOffice Documents

Losing an unsaved LibreOffice document can be devastating, but don't despair – there are multiple ways to recover your work. When LibreOffice crashes, the program typically displays a…

Recovering Unsaved LibreOffice Documents
Photo: Vanderdecken / CC BY-SA 3.0 / Wikimedia Commons

Losing an unsaved LibreOffice document can be devastating, but don't despair – there are multiple ways to recover your work. When LibreOffice crashes, the program typically displays a Document Recovery dialog the next time it starts. From there, you can begin the recovery process. If the recovery fails or the program doesn't open at all, your best bet is to look for AutoRecovery files and backup copies that LibreOffice may have created.

What LibreOffice Can Recover Automatically

LibreOffice’s AutoRecovery feature is a powerful tool for recovering lost work after a crash. Turn it on under Tools > Options > Load/Save > General > Save AutoRecovery information every N minutes (LibreOffice > Preferences on macOS).

If prompted with a Document Recovery dialog, the "Start" button can help you resurrect your unsaved work.

Turn on Backup Copies Before the Next Crash

Creating backup copies is another essential safety net for preventing data loss. By enabling the “Always create backup copy” option (Tools > Options > Load/Save > General), LibreOffice saves an old version of your document to the backup directory every time you save the current version. This failsafe can be a lifesaver if a crash occurs or if the latest save is somehow corrupted.

Where to Look When the File Is Gone or Damaged

If you can't resurrect your document through the recovery dialog or AutoRecovery, the next step is to locate the backup directory, shown under Tools > Options > LibreOffice > Paths > Backups; backup copies have the .bak extension.

Power cuts are a common cause of file corruption, but don't let a damaged.odt file be the nail in your work's coffin. Remember that a.odt file is essentially a ZIP archive that you can open by renaming it as such – look for your content in the “content.xml” file.

Alternatively, LibreOffice may offer to repair a corrupted file, so be on the lookout for any prompt to do so.

What Usually Causes the Loss

While software crashes and hardware failures are often to blame, many document losses can be attributed to power cuts during the save process. However, there are a few preventative measures that can significantly reduce the likelihood of losing your work.

How to Reduce Future Loss

To safeguard your work against future disasters, adopt these best practices:

  1. Enable AutoRecovery and backup copy creation in your LibreOffice settings.
  2. Regularly save your work, especially after significant changes.
  3. Save your files in multiple locations, including on the cloud or on a USB drive.
  4. Establish a habit of courtesy copies with alternate formats or names.

By keeping these precautions in mind and knowing how to recover your files, you can significantly reduce the risk of losing valuable work in the future.

Before attempting to rescue a document from a.bak file or.zip archive, check the Document Recovery dialog and any presumed AutoRecovery files, to restore a document closer to its finished state.