How to Safely Extract Ubuntu ‘Unsaved LibreOffice Documents’ (Recover Auto-Recovery Files)

If you are writing a critical essay or compiling a massive spreadsheet in LibreOffice on your Ubuntu Linux machine, a sudden power outage or a kernel panic can be devastating. If you haven’t clicked “Save” in two hours, you might assume all your work is gone.

However, LibreOffice runs a silent background daemon that automatically saves temporary “snapshot” files of your document every few minutes. These files are not stored in your Documents folder; they are buried deep inside a hidden configuration directory. If LibreOffice fails to automatically prompt you to recover the file when you reopen the app, you can manually extract the raw backup file yourself.

How to Safely Extract Ubuntu Unsaved LibreOffice Documents

You must navigate into the hidden `.config` directory to find the backup repository.

  1. Open your Ubuntu file manager (Files/Nautilus).
  2. Navigate to your main Home directory.
  3. By default, Ubuntu hides configuration folders. Press Ctrl + H on your keyboard to reveal all hidden files (they all start with a period).
  4. Look for a folder named .config and double-click to open it.
  5. Inside, navigate through this exact folder path: .config/libreoffice/4/user/backup
  6. This is the emergency vault. Look for any files ending in the .bak extension.
  7. Check the “Modified” date column to find the file that matches the exact time your computer crashed.

Crucial Step: Do not try to double-click the .bak file to open it directly. First, right-click the file and select Copy, then paste it onto your Desktop. Next, right-click the copied file on your Desktop, select Rename, and change the `.bak` extension back to its proper LibreOffice format (e.g., change it to .odt for a text document or .ods for a spreadsheet). You can now double-click the renamed file, and it will open perfectly, safely extracting hours of lost work.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.