mdtar.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 234 行

1
234
字号
.\" SCCSID: @(#)mdtar.1	2.6	7/17/87.TH mdtar 1.SH Namemdtar \- multivolume archiver.SH Syntax.B mdtar[\|\fIkey\fR\|] [\|\fIname...\fR\|].SH Description.NXR "mdtar command".NXR "file" "backing up multiple".NXA "mdtar command" "tar command"The.PN mdtar command saves multiple files on  multiple archives (usually an  RX50diskette, but any file/device may be specified).  .PN mdtar actions are controlled by the.B keyargument.  The.B keyis a string of characters containing one function letter and one or more function modifiers.  Other arguments to .PN mdtarare file or directory names specifying which files to dump or restore.In all cases, appearance of a directory name refers tothe files and, recursively, subdirectories of that directory. .PN mdtaralso saves special files..SH Options.IP \fB\-C\fR 10Changes directory to specified.IR name .  This allows multiple directories notrelated by a close common parent, to be archived using shortrelative path names.  For example, to archive files from .PN /usr/includeand from .PN /etc ,one might use.EXmdtar c \-C /usr include . \-C /etc ..EE.PPThe function portion of the key is specified by a letter..NXR "mdtar command" "key list".IP \fBc\fR 10Creates a new archive.  Writing begins at the beginning of the archiveinstead of after the last file.  .IP \fBr\fR Writes the named files to the end of the archive..IP \fBt\fR Generates archive table of contents.  If no argument is given, all  of the names on the archiveare listed..IP \fBu\fR Updates the current archive.  Adds the named files to the archive, if they are not there already or if they have been modified since last put on the archive..IP \fBx\fR Extracts each specified file from the archive.  If the named filematches a directory whose contents hadbeen written onto the archive, thisdirectory is recursively extracted.The owner, modification time, and modeare restored if you are the superuser and if you havealso specified the .B pswitch.  If no file argument is given, the entire contentof the archive is extracted.  If multiple entries specifying the samefile are on the archive, the last one overwrites previous versions. .PP.spThe following characters may beused to qualify the function desiredin addition to one or more of the above letters..NXR "mdtar command" "function modifiers".IP \fB0...9\fR 10Selects unit number of the drive as an alternate disk drive. The default disk drive is the device named .PN /dev/rra1a ..IP \fBA\fR Uses the specified number (next argument) as archive with which to beginthe output.  This switchis intended for error recovery. .PN mdtar outputs files in terms of Archives.Each Archive contains a number of files. If .PN mdtar has been requested to dumpa path (set of files)that consist of (for example) 10 archives and there isan error writing the nth Archive,then the A modifier may be used to restart.PN mdtarat the nth Archive. .NT CAUTIONYou must issue the samepath (set of files) as in the first command. This will guarantee that .PN mdtarwill begin at the correct file on Archive n. .NEIf the v mode is specified, .PN mdtar outputs informationalmessages to inform the user of progress.For example, the following command will dump the entire directory structure:.EXmdtar cv \*   .EEIf an error occurs on Archive 7, to restart at the 7th Archive, without having tore-dump the first 6 Archives, issue the following command:.EXmdtar cvA 7 \*.EE.PN mdtar will tell you it is skipping the first 6 Archives and will resumeoutput with the data that begins Archive 7..IP \fBb\fR 10Uses the specified number (next argument) as the blocking factor.  The default is 20 (the maximum is 20)..IP \fBB\fR Forces output blocking to 20 blocks per record. .IP \fBf\fR Uses the specified file (next argument) as the name of the archive.  If the name of the file is \-, .PN mdtarwrites tostandard output (piping)..IP \fBF\fR[\fB\F\fR] Operates in fast mode.When.B Fis specified,.PN mdtarskips all SCCS directories, core files, and errs files.When.B FFis specified,.PN mdtaralso skips all a.out and *.o files..IP \fBh\fR Saves a copy of the file (excludes symbolic links).  The default action of .PN mdtaris to place symbolic linkinformation on the output device. A copy of the file IS NOTsaved on the output device. .IP \fBi\fR Ignores checksum errors found in the archive..IP \fBl\fR Displays an error message if all links to thefiles dumped cannot be resolved. If \-l is not specified, no errormessages are printed..IP \fBm\fR Does not restore file modification times.  The modification timeis the time of extraction.  Normally, .PN mdtarrestores modification times of regular and special files..IP \fBo\fR Suppresses the normal directory information.  On output,.PN mdtarnormally places information specifying owner and modes of directoriesin the archive.  Former versions of.PN mdtar ,when encountering this information will give the error message.EX<name>/: cannot create..EE.IP \fBpRestores the named files to their original modes,ignoring the present.MS umask 2 .Setuid and sticky informationwill also be restored to the super-user.You must be Superuser to perform this option.For further information, see .MS stat 2 ,S_ISVTX..IP \fBs\fR Uses specified number (next argument) as size of media in 512-byte blocks.  This enables .PN mdtar to be used with devices of different physical mediasizes. The default is 800 blocks (assumption is an RX50 output Archive)..IP \fBv\fR Displays detailed (verbose) information as it archives files.  Normally.PN mdtar does its work silently.With the.B tfunction, the verbose optiongives more information about the archive entries than just their names..EX #cd#mdtar cvf mdtar-out vmunix.EEProduces the output ``a vmunix 1490 blocks''where 1490 is the number of 512 byte blocks in the file ``vmunix''..EX #mdtar xvf mdtar-out.EEProduces the output ``x vmunix, 762880 bytes, 1490 blocks'' where 762880 is thenumber of bytes and 1490 is the number of 512 byteblocks in the file ``vmunix'' which was extracted..IP \fBw\fR Displays action to be taken for each file and prompts for confirmation.  If a word beginning with `y'is given, the action is done. Any other input means do not do it..SH Restrictions.NXR "mdtar command" "restricted"The .B uoption can be slow..PPThe current limit on file name length is 100 characters..PPThere is no way to follow symbolic links selectively..SH Diagnostics.NXR "mdtar command" "diagnostics"Indicates bad key characters and archive read/write errors..PPIndicates if enough memory is not available to hold the link tables..SH Files.PN /tmp/tar*.SH See Alsostat(2), tar(1)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?