rrestore.8c
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8C 代码 · 共 388 行
8C
388 行
.\" SCCSID: @(#)rrestore.8c 8.1 9/11/90.TH rrestore 8c.SH Namerrestore \- restore a file system dump across the network.SH Syntax.B /etc/rrestore[ \-\fIkey\fP [\fIname\fP ... ] ].SH Description.NXB "rrestore command".NXA "restore command" "rrestore command".NXA "rrestore command" "rmt program".NXB "file system" "restoring incremental dumps across network"The.PN rrestoreutility obtains filesfrom a file, magnetic tape, or disk, which weresaved by a previous.MS dump 8 .The utility is identical in operation to.MS restore 8except the .B fkey must be specified and the filesupplied should be of the following form:.PP.I remote-system-name:device-or-file.PPThe.PN rrestorecommandinitiates a remote server,.PN /etc/rmt ,on the remote machine to access the remote file or device.The function portion of the keyis specified by one of the following letters:.SH Keys.NXB "rrestore command" "keys".TP 5 .B iThis key allows interactive restoration of files from the dump media.After reading in the directory information from the dump media,.PN rrestorelets the user movearound the directory tree selecting or deselectingfiles to be extracted.The available interactive commands are: .RS 5.TP 12\fBls [\fIarg\fR]List the specified directory. If no directory is specified,the user's current directory is listed.Entries that are directories are appended with a slash (/).Entries that have been marked for extraction are prepended with an asterisk (*).If the .B verbose key is set,the inode number of each entry is also listed..TP\fBcd \fIarg\fRChange the current working directory to the directory specified..TP\fBpwd\fRPrint the full pathname of the current working directory..TP\fBadd [\fIarg\fR]The current directory or the specified argument (a directory or file)is added to the extraction list (the list of files to be extracted). If a directory is specified, then it and all its descendents areadded to the extraction list,unless the.B hkey is specified on the command line.Files that are on the extraction list are prepended with anasterisk (*)when they are listed by .BR ls ..TP\fBdelete [\fIarg\fR]The current directory or specified argumentis deleted from the extraction list (the list offiles to be extracted). If a directory is specified, then it and all its descendents aredeleted from the extraction list,unless the.B hkey modifier is specified on the command line.The easiest way to extract most of the files from a directory is to add the directory to the extraction list and then deletethose files that are not needed..TP\fBextract\fRAll the files on the extraction list are extractedfrom the dump media.The.PN rrestorecommand asks which volume the user wishes to mount..TP\fBverbose\fRThe verbose (.B v) key is toggled. Entering the command turns on verbose. Entering the commandagain turns off verbose.When used, the verbose key causes the .B lscommand to list the inode numbers of all entries.It also causes.PN rrestoreto print out information about each file as it is extracted..TP\fBhelp\fRList a summary of the available commands..TP\fBquit\fRThe.PN rrestore utility immediately exits,even if the extraction list is not empty..RE.TP 5.B RThe.PN rrestoreutility prompts for a particular volume of a multivolumeset on which to restart a full restore. This option lets.PN rrestorebe interrupted and then restarted..TP 5.B rThe dump medias' data is read into the current directory.You should use this function key only to restore the completedump media onto a newly created file system, or to restore incrementaldump media after a full level-0 restore. See Examples fora typical sequence to restore complete dump media.Note that.PN rrestoreleaves a file,.PN restoresymtab ,in the root directory to pass information between incrementalrestore passes. Remove this file after the lastincremental dump media has been restored.A .MS rdump 8followed by a.MS newfs 8and a.MS rrestore 8can be used to change the size of a file system..TP 5.B tThe names of the specified files are listed if they occuron the dump media. If no .I nameargument is given, then theroot directory is listed. This results in the entire contentsof the dump media being listed, unless the.B hkey modifier has been specified..TP 5.B xThe files specified by the.I nameargument are extracted from the dump media. If a namedfile matches a directory whose contents had been written ontothe dump media and the.B hkey modifier is not specified, the directory is recursivelyextracted. The owner, modification time, and mode arerestored, if possible.If no.I nameargument is given, the root directory is extracted. Thisresults in the extraction of theentire contents of the dump media unlessthe.B hkey modifier has been specified..PPYou can use any of the following characters in addition to the letter that selects the function desired: .TP 5.B BThe next argument to.PN rrestoreis a number giving the size, in 1024-byte blocks, of afixed-size storage medium, such as diskettes or removabledisks (see Examples). The.PN rrestoreutility does not ask whether it should abort the restoreif there is a dump media read error. It always tries toskip over the bad block(s) and continue..TP 5.B fThe next argument to.PN rrestoreis used as the name of the remote system followed by a colon and the device or file containing the dump data..TP 5.B hThe.PN rrestoreutility extracts the actual directory, rather than the filesthat it references. This prevents hierarchical restoration ofcomplete subtrees from the dump media..TP 5.B mThe.PN rrestoreutility extracts by inode numbers rather than by file name. Thisis useful if only a few files are being extracted, and you wantto avoid typing the complete pathname to the file..TP 5.B oProvides compatibility with non-ULTRIX or pre-ULTRIX V2.0 remote systems..TP 5.B sThe next argumentidentifieswhich dump file on the dump media is to be used by .PN rrestore .This is useful whenthe dump media has more than one dump image on it and not all of them will be restored..TP 5.B vNormally,.PN rrestoredoes its work silently.The.B v(verbose)key modifier causes it to displaythe name of each file it treats,preceded by its file type..NXE "rrestore command" "keys".SH Examples.NXR "rrestore command" "examples"The following example shows a typical sequence ofcommands to restore complete dump mediafrom a system named ``remotesystem'' mounted on a tape device on that system:.EX/etc/newfs /dev/rrp0g ra60/etc/mount /dev/rp0g /mntcd /mntrrestore rf remotesystem:/dev/rmt0h.EEAnother.PN rrestorecan be done to get an incremental dump.The following example shows how to restore files interactivelyfrom a dump on RX50 diskettes:.EXrrestore iBf 400 remotesystem:/dev/ra2a.EEThe following example restores a previously dumped file system from a -non-ULTRIX or an ULTRIX remote systemprior to Version 2.0. The commandrestores the complete file system in verbose mode specifying a 400 block device size from a remote system's RX50 device:.EXrrestore rvoBf 400 remotesystem:/dev/ra2a.EE.SH Restrictions.NXR "restore command" "restricted"The.PN rrestoreutilitycan make errors when doing incremental restores fromdump media that were made on active file systems..PPYou must do a level 0 dump after a full restore.Because .PN rrestore runs in user code,it has no control over inode allocation;thus, you must do a full .PN restore to get a new set of directoriesthat reflects the new inode numbering,even though the contents of the files are unchanged..SH Diagnostics.NXB "rrestore command" "diagnostics"Complains about bad key characters..PPComplains if it gets a dump media read error.If the user responds with a y,.PN rrestoreattempts to continue the restore..PPIf the dump extends over more than one dump volume,.PN rrestorewill ask the user to change volumes.If the.B xor.B ifunction key has been specified,.PN rrestorealso asks which volume the user wishes to mount..PPThere are numerous consistency checks that can be listed by.PN rrestore .Most checks are self-explanatory. Some common errors are: .PP.B "Converting to new file system format".brIf dump media created from the Fast File System (FFS)has been loaded.It is automatically converted to the Berkeley Version 4.2file system format..PP.B "<\fIfilename\fP>: not found on tape{disk}".brThe specified file name was listed in the dump media directory,but was not found on the media.This is caused by dump media read errors while looking for the fileor from using dump media created on an active file system..PP.B "expected next file <\fIinumber\fP>, got <\fIinumber\fP>".brA file that was not listed in the directory was found on the media.This can occur when using dump media created on an active file system..PP.B "Incremental tape{disk} too low".brWhen doing incremental restore,dump media was loaded that was written before the previous incremental mediaor has too low an incremental level. .PP.B "Incremental tape{disk} too high".brWhen doing incremental restore,dump media that does not begin its coverage where the previous incremental dump media left off,or that has too high an incremental level has been loaded..PP.B "Tape{Disk} read error while restoring <filename>".br.B "Dump media read error while skipping over inode <inumber>".br.B "Dump media read error while trying to resynchronize".brA dump media read error has occurred.If a file name is specified,then its contents are probably partially wrong.If an inode is being skipped or the restore is trying to resynchronize,then no extracted files have been corrupted,although files may not be found on the dump media..PP.B "resync restore, skipped <num> blocks".brAfter a dump media read error, .PN rrestoremay have to resynchronize itself.This message lists the number of blocks that were skipped. .NXE "rrestore command" "diagnostics".SH Files.TP 17.PN /dev/rmt0hDefault tape drive.TP.PN /tmp/rstdir*File containing directories on the dump media.TP.PN /tmp/rstmode*Owner, mode, and time stamps for directories.TP.PN /restoresymtabInformation passed between incremental restores.TP.PN /dev/ttyRequired for user interface.SH See Alsorestore(8), rmt(8c).NXE "file system" "restoring incremental dumps across network".NXE "rrestore command"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?