Re: file recovery

2009-07-02 Thread humanengr
John -- yes, the "#" files appear to be autosaves. And thanks for the 
fallback DVI, etc., suggestion.


After testing, I see that:

"emergency" files are created if there is a crash.
"~" files are "archive" backups of the last "saved" version. (These 
appear beginning with the second "save".)
"#" are "autosave" backups; they get updated if the file changes 
before the backup interval (set in preferences) expires. These files 
are deleted by a "save" operation. So, if a "#" exists, it is more 
recent than a "~" file.


So, the time ordering of the files would be, beginning with most 
recent (and assuming they exist):

"emergency" files
"#" files
"~" files

humanengr



On Thu, Jul 2, 2009 at 2:11 PM, humanengr wrote:
 > Does anyone know what role the "#" are supposed to play?

These appear to be autosaves.

Also there is yet another type of file you can recover from. If you
have done a view DVI etc, there is also likely to be a .tex file
sitting somewhere in your tmp directory. You can then import that .tex
file back into LyX. This saved me from retyping a couple of paragraphs
of math once.

--
John C. McCabe-Dansted
PhD Student

University of Western Australia

Re: file recovery

2009-07-02 Thread John McCabe-Dansted
On Thu, Jul 2, 2009 at 2:11 PM, humanengr wrote:
> Does anyone know what role the "#" are supposed to play?

These appear to be autosaves.

Also there is yet another type of file you can recover from. If you
have done a view DVI etc, there is also likely to be a .tex file
sitting somewhere in your tmp directory. You can then import that .tex
file back into LyX. This saved me from retyping a couple of paragraphs
of math once.

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: file recovery

2009-07-01 Thread humanengr

Helge, Olivier -- thanks.

On my Mac (10.5.7), the backup preference doesn't seem to work. The 
"~" file gets created at the first "save" and gets updated at 
subsequent saves to reflect the prior save.


The emergency file has appeared on each of the handful of crashes 
I've had the pleasure to witness.


The "#" files (i.e., filenames of the form "#newfile1.lyx#") have 
appeared only a few times -- IIRC shortly after I create a new file 
(presumably at the first save) in lieu of the "~" file.


Does anyone know what role the "#" are supposed to play?

humanengr


At 3:17 PM +0200 7/1/09, Helge Hafting wrote:

My impression after a quick test: The "~" files are made whenever you
save the document (File->Save) and is simply the previous version of 
the file. This has nothing to do with emergency files, it lets you 
recover if you make some mistake. For example, deleting some 
important text and then save&quit.


At 3:39 PM +0200 7/1/09, Olivier Ripoll wrote:
Backup (lyx~) files are the ones saved every N minutes by LyX, where 
N is 5 by default. You can set the backup period in the preferences.


Emergency files are files saved in case of a crash. LyX will look at 
the file dates and can propose you to load the emergency file (or 
the backup file) instead, if they are more recent. If you load the 
emergency file, as long as you don't save it above the old one, you 
have not lost anything and if it's corrupted, you can then try the 
backup file or the original file.


LyX does not touch your original file as long as you don't ask it 
to. I had one crash in 2000 because the X server had crashed, the 
emergency file had everything correct till the last key pressed 
before the crash.
I think I've had another crash since on Windows (probably an alpha 
or beta of 1.6 IIRC), and I think then again, the emergency file was 
fine.


So in fact, backups are more like to go back to an old version 
(well, undo can do that too). Or a second safety belt.


Best regards,

Olivier


Re: file recovery

2009-07-01 Thread Olivier Ripoll

humanengr wrote:

Thank you both. A follow-up:

I see the User Guide indicates the "~" files are "backup". What is the 
relationship between those and the "emergency" and "#" files?


Backup (lyx~) files are the ones saved every N minutes by LyX, where N 
is 5 by default. You can set the backup period in the preferences.


Emergency files are files saved in case of a crash. LyX will look at the 
file dates and can propose you to load the emergency file (or the backup 
file) instead, if they are more recent. If you load the emergency file, 
as long as you don't save it above the old one, you have not lost 
anything and if it's corrupted, you can then try the backup file or the 
original file.


LyX does not touch your original file as long as you don't ask it to. I 
had one crash in 2000 because the X server had crashed, the emergency 
file had everything correct till the last key pressed before the crash.
I think I've had another crash since on Windows (probably an alpha or 
beta of 1.6 IIRC), and I think then again, the emergency file was fine.


So in fact, backups are more like to go back to an old version (well, 
undo can do that too). Or a second safety belt.


Best regards,

Olivier



At 8:54 AM +0200 6/29/09, Wolfgang Engelmann wrote:

I usually rename the x.lyx.emergency
into eg
x1.lyx

and open it with lyx.

Wolfgang


At 2:56 AM -0400 6/29/09, Michael Joyner ?? wrote:

copy xxx.lyx~ to xxx2.lyx






Re: file recovery

2009-07-01 Thread Helge Hafting

humanengr wrote:

Thank you both. A follow-up:

I see the User Guide indicates the "~" files are "backup". What is the 
relationship between those and the "emergency" and "#" files?



My impression after a quick test: The "~" files are made whenever you
save the document (File->Save) and is simply the previous version of the 
file. This has nothing to do with emergency files, it lets you recover 
if you make some mistake. For example, deleting some important text and 
then save&quit.


Helge Hafting



Re: file recovery

2009-06-29 Thread Wolfgang Engelmann
Am Monday 29 June 2009 10:40:08 schrieb humanengr:
> Thank you both. A follow-up:
>
> I see the User Guide indicates the "~" files are "backup". What is
> the relationship between those and the "emergency" and "#" files?
 "~" files are normal backups
emergency if something went wrong with lyx: the latest automatic saving is 
used, AFAIK. 
Wolfgang


Re: file recovery

2009-06-29 Thread humanengr

Thank you both. A follow-up:

I see the User Guide indicates the "~" files are "backup". What is 
the relationship between those and the "emergency" and "#" files?


At 8:54 AM +0200 6/29/09, Wolfgang Engelmann wrote:

I usually rename the x.lyx.emergency
into eg
x1.lyx

and open it with lyx.

Wolfgang


At 2:56 AM -0400 6/29/09, Michael Joyner ?? wrote:

copy xxx.lyx~ to xxx2.lyx


Re: file recovery

2009-06-28 Thread Michael Joyner ᏩᏯ
copy xxx.lyx~ to xxx2.lyx

humanengr wrote:
> How does one open a Lyx backup file? Where in the documentation is
> this discussed?
>
> Thanks,
> humanengr


-- 
LyX: http://www.lyx.org/ OpenOffice: http://www.openoffice.org/
Inkscape: http://www.inkscape.org/ Scribus: http://www.scribus.net/
GIMP: http://www.gimp.org/ PDF: http://www.pdfforge.org/




signature.asc
Description: OpenPGP digital signature


Re: file recovery

2009-06-28 Thread Wolfgang Engelmann
Am Monday 29 June 2009 05:35:12 schrieb humanengr:
> How does one open a Lyx backup file? Where in the documentation is
> this discussed?
>
> Thanks,
> humanengr

I usually rename the x.lyx.emergency 
into eg
x1.lyx

and open it with lyx. 

Wolfgang




file recovery

2009-06-28 Thread humanengr
How does one open a Lyx backup file? Where in the documentation is 
this discussed?


Thanks,
humanengr