On Windows-10 home, LibreOffice crashed. I was not given an option to restore it. It shows up in my list as 'lock.HP_ (name of file). How can I get this back? When I go into Tools/Option/Paths, I do not have an internal path showing in my Backups User path. How do I create one, or how can I just retrieve my locked file?
The lock file, .~lock.[filename].odt
contains the username of the person who has the named file open, date, and file path, so there is nothing of use in there.
Your file should be where you saved it, did you save it?
If you had saved it and it isn’t where it should be, is it possible you are using OneDrive and OneDrive just moved it to online-only when it got to two weeks old?
If Windows crashed/automatic rebooted with LibreOffice open then LibreOffice wouldn’t have time to save document or even its own state. In that case the document could be partly recoverable from the Temporary Files location. Normally, that is C:\Users\[username]\AppData\Local\Temp
.
- In File Explorer, navigate to the Temporary File location and look for a folder with Date Modified at around the time of the crash, the folder you want would be named something like lu12345asdf.tmp.
- Open the folder and copy the most recent, largest file to a folder in Documents.
- Open LibreOffice and click File > Open, navigate to and select your newly copied file. Click Open
- With a bit of luck it will open your document. Save As a new file [myfile].odt
To set backup open Tools > Options > Load/Save > General and tick box. Note this is a one-chance only backup, it gets overwritten on next successful opening of the originating file, even if that file has virtually nothing in it.
For more on saving your data, see Preventing data disaster - The Document Foundation Wiki
A 'lock.HP_ (name of file)
file name doesn’t look like LibreOffice’s .~lock.(name of file)
file name though.