BSD 4_3_Net_2 release
[unix-history] / usr / src / sbin / restore / restore.8
index dadc139..a664eea 100644 (file)
@@ -1,11 +1,37 @@
 .\" Copyright (c) 1985, 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
 .\" Copyright (c) 1985, 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
-.\" %sccs.include.redist.man%
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.\"     @(#)restore.8  6.9 (Berkeley) %G%
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
 .\"
 .\"
-.Dd 
+.\"     @(#)restore.8  6.10 (Berkeley) 7/23/91
+.\"
+.Dd July 23, 1991
 .Dt RESTORE 8
 .Os BSD 4
 .Sh NAME
 .Dt RESTORE 8
 .Os BSD 4
 .Sh NAME
@@ -141,17 +167,6 @@ The available commands are given below;
 for those commands that require an argument,
 the default is the current directory.
 .Bl -tag -width Fl
 for those commands that require an argument,
 the default is the current directory.
 .Bl -tag -width Fl
-.It Ic help
-List a summary of the available commands.
-.It Ic \&ls Op Ar arg
-List the current or specified directory.
-Entries that are directories are appended with a ``/''.
-Entries that have been marked for extraction are prepended with a ``*''.
-If the verbose key is set the inode number of each entry is also listed.
-.It Ic \&cd Ar arg
-Change the current working directory to the specified argument.
-.It Ic pwd
-Print the full pathname of the current working directory.
 .It Ic add Op Ar arg
 The current directory or specified argument is added to the list of
 files to be extracted.
 .It Ic add Op Ar arg
 The current directory or specified argument is added to the list of
 files to be extracted.
@@ -163,6 +178,8 @@ key is specified on the command line).
 Files that are on the extraction list are prepended with a ``*''
 when they are listed by 
 .Ic ls .
 Files that are on the extraction list are prepended with a ``*''
 when they are listed by 
 .Ic ls .
+.It Ic \&cd Ar arg
+Change the current working directory to the specified argument.
 .It Ic delete Op Ar arg
 The current directory or specified argument is deleted from the list of
 files to be extracted.
 .It Ic delete Op Ar arg
 The current directory or specified argument is deleted from the list of
 files to be extracted.
@@ -181,6 +198,18 @@ from the dump.
 will ask which volume the user wishes to mount.
 The fastest way to extract a few files is to
 start with the last volume, and work towards the first volume.
 will ask which volume the user wishes to mount.
 The fastest way to extract a few files is to
 start with the last volume, and work towards the first volume.
+.It Ic help
+List a summary of the available commands.
+.It Ic \&ls Op Ar arg
+List the current or specified directory.
+Entries that are directories are appended with a ``/''.
+Entries that have been marked for extraction are prepended with a ``*''.
+If the verbose key is set the inode number of each entry is also listed.
+.It Ic pwd
+Print the full pathname of the current working directory.
+.It Ic quit
+Restore immediately exits,
+even if the extraction list is not empty.
 .It Ic setmodes
 All the directories that have been added to the extraction list
 have their owner, modes, and times set;
 .It Ic setmodes
 All the directories that have been added to the extraction list
 have their owner, modes, and times set;
@@ -196,10 +225,7 @@ command to list the inode numbers of all entries.
 It also causes
 .Nm restore
 to print out information about each file as it is extracted.
 It also causes
 .Nm restore
 to print out information about each file as it is extracted.
-.It Ic quit
-Restore immediately exits,
-even if the extraction list is not empty.
-.Tp
+.El
 .El
 .Pp
 The following characters may be used in addition to the letter
 .El
 .Pp
 The following characters may be used in addition to the letter
@@ -234,6 +260,24 @@ with the command
 dump 0f - /usr | (cd /mnt; restore xf -)
 .Ed
 .Pp
 dump 0f - /usr | (cd /mnt; restore xf -)
 .Ed
 .Pp
+.It Cm h
+.Nm Restore
+extracts the actual directory, 
+rather than the files that it references.
+This prevents hierarchical restoration of complete subtrees
+from the dump.
+.It Cm m
+.Nm Restore
+will extract by inode numbers rather than by file name.
+This is useful if only a few files are being extracted,
+and one wants to avoid regenerating the complete pathname
+to the file.
+.It Cm s
+The next argument to
+.Nm restore
+is a number which
+selects the file on a multi-file dump tape.  File numbering
+starts at 1.
 .It Cm v
 Normally
 .Nm restore
 .It Cm v
 Normally
 .Nm restore
@@ -248,24 +292,6 @@ preceded by its file type.
 will not ask whether it should abort the restore if gets an error.
 It will always try to skip over the bad block(s) and continue as
 best it can.
 will not ask whether it should abort the restore if gets an error.
 It will always try to skip over the bad block(s) and continue as
 best it can.
-.It Cm m
-.Nm Restore
-will extract by inode numbers rather than by file name.
-This is useful if only a few files are being extracted,
-and one wants to avoid regenerating the complete pathname
-to the file.
-.It Cm h
-.Nm Restore
-extracts the actual directory, 
-rather than the files that it references.
-This prevents hierarchical restoration of complete subtrees
-from the dump.
-.It Cm s
-The next argument to
-.Nm restore
-is a number which
-selects the file on a multi-file dump tape.  File numbering
-starts at 1.
 .El
 .Sh DIAGNOSTICS
 Complaints about bad key characters.
 .El
 .Sh DIAGNOSTICS
 Complaints about bad key characters.
@@ -368,6 +394,6 @@ reflecting the new inode numbering,
 even though the contents of the files is unchanged.
 .Sh HISTORY
 The
 even though the contents of the files is unchanged.
 .Sh HISTORY
 The
-.Nm
+.Nm restore
 command appeared in
 .Bx 4.2 .
 command appeared in
 .Bx 4.2 .