74 lines
2.2 KiB
HTML
74 lines
2.2 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>elvrec(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>elvrec(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
elvrec - Recover the modified version of a file after a crash
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>elvrec</STRONG> [<EM>preservedfile</EM> [<EM>newfile</EM>]]
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
If you're editing a file when <EM>elvis</EM> dies, the system crashes, or power
|
|
fails, the most recent version of your text will be preserved. The
|
|
preserved text is stored in a special directory; it does NOT overwrite
|
|
your text file automatically.
|
|
|
|
The <EM>elvrec</EM> program locates the preserved version of a given file, and
|
|
writes it over the top of your text file -- or to a new file, if you
|
|
prefer. The recovered file will have nearly all of your changes.
|
|
|
|
To see a list of all recoverable files, run <EM>elvrec</EM> with no arguments.
|
|
|
|
|
|
</PRE>
|
|
<H2>FILES</H2><PRE>
|
|
|
|
/usr/preserve/p*
|
|
The text that was preserved when <EM>elvis</EM> died.
|
|
|
|
/usr/preserve/Index
|
|
A text file which lists the names of all preserved files, and the
|
|
names of the /usr/preserve/p* files which contain their preserved
|
|
text.
|
|
|
|
|
|
</PRE>
|
|
<H2>BUGS</H2><PRE>
|
|
|
|
<EM>elvrec</EM> is very picky about filenames. You must tell it to recover the
|
|
file using exactly the same pathname as when you were editing it. The
|
|
simplest way to do this is to go into the same directory that you were
|
|
editing, and invoke <EM>elvrec</EM> with the same filename as <EM>elvis</EM>. If that
|
|
doesn't work, then try running <EM>elvrec</EM> with no arguments, to see exactly
|
|
which pathname it is using for the desired file.
|
|
|
|
Due to the permissions on the /usr/preserve directory, on UNIX systems
|
|
<EM>elvrec</EM> must be run as superuser. This is accomplished by making the
|
|
<EM>elvrec</EM> executable be owned by "root" and setting its "set user id" bit.
|
|
|
|
If you're editing a nameless buffer when <EM>elvis</EM> dies, then <EM>elvrec</EM> will
|
|
pretend that the file was named "foo".
|
|
|
|
|
|
</PRE>
|
|
<H2>AUTHOR</H2><PRE>
|
|
Steve Kirkendall
|
|
kirkenda@cs.pdx.edu
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|