Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

elvrec(1) [minix man page]

ELVREC(1)						      General Commands Manual							 ELVREC(1)

NAME
elvrec - Recover the modified version of a file after a crash SYNOPSIS
elvrec [preservedfile [newfile]] DESCRIPTION
If you're editing a file when elvis 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 elvrec 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 elvrec with no arguments. FILES
/usr/preserve/p* The text that was preserved when elvis 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. BUGS
elvrec 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 elvrec with the same filename as elvis. If that doesn't work, then try running elvrec 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 elvrec must be run as superuser. This is accomplished by making the elvrec executable be owned by "root" and setting its "set user id" bit. If you're editing a nameless buffer when elvis dies, then elvrec will pretend that the file was named "foo". AUTHOR
Steve Kirkendall kirkenda@cs.pdx.edu ELVREC(1)

Check Out this Related Man Page

ELVPRSV(8)						      System Manager's Manual							ELVPRSV(8)

NAME
elvprsv - Preserve the the modified version of a file after a crash. SYNOPSIS
elvprsv ["-why elvis died"] /tmp/filename... elvprsv -R /tmp/filename... DESCRIPTION
elvprsv preserves your edited text after elvis dies. The text can be recovered later, via the elvprsv program. For UNIX-like systems, you should never need to run this program from the command line. It is run automatically when elvis is about to die, and it should be run (via /etc/rc) when the computer is booted. THAT'S ALL! For non-UNIX systems such as MS-DOS, you can either use elvprsv the same way as under UNIX systems (by running it from your AUTOEXEC.BAT file), or you can run it separately with the "-R" flag to recover the files in one step. If you're editing a file when elvis dies (due to a bug, system crash, power failure, etc.) then elvprsv will preserve the most recent ver- sion of your text. The preserved text is stored in a special directory; it does NOT overwrite your text file automatically. elvprsv will send mail to any user whose work it preserves, if your operating system normally supports mail. FILES
/tmp/elv* The temporary file that elvis was using when it died. /usr/preserve/p* The text that is preserved by elvprsv. /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. BUGS
Due to the permissions on the /usr/preserve directory, on UNIX systems elvprsv must be run as superuser. This is accomplished by making the elvprsv executable be owned by "root" and turning on its "set user id" bit. If you're editing a nameless buffer when elvis dies, then elvprsv will pretend that the file was named "foo". AUTHOR
Steve Kirkendall kirkenda@cs.pdx.edu ELVPRSV(8)
Man Page