Recovering previous versions of documents

Discuss setup / installation issues - Add a spell checker, Language pack?

Recovering previous versions of documents

Postby AlphaFoley » Wed Apr 22, 2015 4:46 am

So I was writing a final paper for one of my classes with 11 pages of work done. I inserted a page break and started on a new page. I guess somehow, I don't know how, the 11 pages of work I did got deleted (maybe after editing it to be double spaced I accidentally deleted it and didn't realize it. It just got deleted.) Of course, I didn't realize that all of the work got deleted and saved somewhere in between it getting deleted and working on the new page. (I also just realized while finishing this post that if I had kept up the original document I might have been able to undo until I got to the point where the work got deleted) After working on the new page for awhile, I realized that OpenOffice displayed the document as being only one page, and I realized that indeed, all of the pages of the work I did were gone. I already tried restoring previous versions via the properties and 'previous versions' tab, and there were none. I already tried seeing if there were back ups by going to tools > options > paths > backups and then going to the appropriate folders; there were no back ups.
So basically I guess what I'm asking is that I don't have back ups nor previous versions of my document. I've already google'd like a maniac to look for a way to recover the document, but haven't found anything. Is it a lost cause, or is there still hope for recovering the document?
And yeah, for the future this is a painful reminder to not just save the document, but to save multiple versions of the document. Sorry for the long read, I'm just super frustrated.
OpenOffice 4.1 on Windows 7
AlphaFoley
 
Posts: 2
Joined: Wed Apr 22, 2015 4:13 am

Re: Recovering previous versions of documents

Postby Zizi64 » Wed Apr 22, 2015 7:11 am

Do not have any copy of your document (Was not sent as E-mail attachment, have not a pendrive archive)?
If NOT, the nothing to do.

The Openoffice can create 1 backup file for each active document into the Backup directory - after you set the "Allways create a backup copy" option at the 'Tools - Option - Load/Save - General - Save' menu item. But it will overwrited at every time when you click on the Save icon.


And yeah, for the future this is a painful reminder to not just save the document, but to save multiple versions of the document.


You can use a simple macro for this. It will make a normal save , and then export atimestaped copy of the actual document into the "Backup" folder:
Code: Select all   Expand viewCollapse view
Sub SaveAndTimeStampBackup()

Dim sDocURL as string, sBackupURL as string, sTimeStamp as string
Dim oDoc as object

   If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then
      GlobalScope.BasicLibraries.LoadLibrary("Tools")
   End If
   sTimeStamp = "_" & Format(Year(Now), "0000") & Format(Month(Now), "00") & Format(Day(Now), "00") & "_" & _
                       Format(Hour(Now), "00") & Format(Minute(Now), "00") & Format(Second(Now), "00")
   oDoc = Thiscomponent   
   If oDoc.hasLocation() then
      sDocURL = oDoc.getURL()

      sBackupURL = CreateUnoService("com.sun.star.util.PathSettings").Backup & "/" & _
      GetFileNameWithoutExtension(sDocURL, "/") & _
      sTimeStamp() & "." & _
      GetFileNameExtension(sDocURL, "/")   
   
      oDoc.store() ' Save
      oDoc.storeToURL(sBackupURL, array())  ' Backup
   Else
      MsgBox("This document have not URL. Can not be archived." & Chr(10) & "Use the normal 'save' procedure.",16,"Warning:")
   End if
End sub


The path of the "Backup" directory is given in Settings.
(Tools - Options - Open/LibreOffice - Paths). (You can modify the path as you want.)



OpenOffice 3.1 on Windows 7


The OOo 3.1 is a very old version. You need upgrade your software, and/or update your signature.

The latest versions:

LibreOffice 4.4.2 Fresh (or LO 4.3.6 Still)
Apache OpenOffice 4.1.1
Tibor Kovacs, Hungary; LO4.4.7, LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.2.4; AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 7986
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Recovering previous versions of documents

Postby AlphaFoley » Thu Apr 23, 2015 1:19 am

Whoops, the 3.1 in my signature is a typo. Meant to put 4.1
Anyway, thanks for the response. I've given up the ghost for this document and will take necessary measures to make sure it wont happen again.
OpenOffice 4.1 on Windows 7
AlphaFoley
 
Posts: 2
Joined: Wed Apr 22, 2015 4:13 am

Re: Recovering previous versions of documents

Postby affuller » Mon Mar 06, 2017 7:11 pm

OpenOffice no longer features the train mentioned in an earlier post-- 'Tools - Option - Load/Save - General - Save' menu item. Can anyone update this info?


The Openoffice can create 1 backup file for each active document into the Backup directory - after you set the "Allways create a backup copy" option at the 'Tools - Option - Load/Save - General - Save' menu item. But it will overwrited at every time when you click on the Save icon.
OpenOffice 4.1.3
MacBook 10.12.3
affuller
 
Posts: 3
Joined: Mon Mar 06, 2017 6:59 pm

Re: Recovering previous versions of documents

Postby RoryOF » Mon Mar 06, 2017 7:38 pm

Options is under Preferences on a Mac. OO only saves the last version when "Always create a backup copy" is checked, not all previous versions.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28983
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Recovering previous versions of documents

Postby affuller » Mon Mar 06, 2017 8:31 pm

Thanks a million!
OpenOffice 4.1.3
MacBook 10.12.3
affuller
 
Posts: 3
Joined: Mon Mar 06, 2017 6:59 pm

Re: Recovering previous versions of documents

Postby John_Ha » Mon Mar 06, 2017 8:31 pm

See also [Tutorial] How to find and un-delete Writer temporary files for instructions on how to identify and un-delete the temporary files Writer wrote while you were editing the file, and then deleted.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6628
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Recovering previous versions of documents

Postby charlie.it » Tue Mar 07, 2017 8:04 am

Ciao, perhaps can help you (for the future) this incremental backup extension: https://forum.openoffice.org/en/forum/v ... 47&t=77024.

Also, on your Mac, did you not enabled Time Machine?
charlie
macOS 10.12 Sierra: Open Office 4.1.5 - LibreOffice 5.4.3.2
Windows 7 pro (VirtualBox): Open Office 4.1.5 - LibreOffice 5.4.4.2
Ubuntu 17.04 LTE (VirtualBox): LibreOffice 5.1.6.2
http://www.charlieopenoffice.altervista.org
User avatar
charlie.it
Volunteer
 
Posts: 311
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: Recovering previous versions of documents

Postby Alain Reve » Mon Jul 09, 2018 5:04 pm

If you are using Ubuntu, there is a program called "forensic" which may help to retrieve old temporary files created by OO.
Open Office 3.4.1 and 4.1.2 on windows
Alain Reve
 
Posts: 4
Joined: Sun May 15, 2016 2:57 am

Re: Recovering previous versions of documents

Postby John_Ha » Mon Jul 09, 2018 6:21 pm

See [Tutorial] How to find and un-delete Writer temporary files for

a) detailed instructions on how to recover a file as it was when last opened or saved, or as it was when it was last saved with AutoRecovery;

b) how to find previous versions of the file in the folder it is located in, but which have since been deleted;

c) how to un-delete the temporary files Writer wrote while the file was being edited, and then deleted. This will recover the file as it was when last opened or last saved, and is probably the most hopeful.
AOO 4.1.6, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 6628
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests