|
|
coherent
tar Command tar Tape archive manager ttaarr [ccrrttuuxx[00-77bbffllmmvvwwUU] [_b_l_o_c_k_s] [_a_r_c_h_i_v_e] _f_i_l_e ... tar manipulates archives in a machine-independent format con- venient for tape. The first argument consists of at most one directive character, followed by zero or more option characters. file is generally a file to be placed on or extracted from the tape. If a file is a directory, tar processes its contents recursively. For directives that input from the tape, no file specification tells tar to process every file on the tape. For directives that output to the tape, no file specification tells tar to process every file in the current directory. The directives are as follows: cc Create a new tape, overwriting any old contents. rr Replace (append) the named files on the tape. tt Write a table of contents of the tape to the standard output. uu Update the tape by replacing the named files which are newer (mtime larger) than any version on the tape. xx Extract the named files from the tape, overwriting existing files with the same names. tar extracts each version of each file, leaving the latest version at the end. The options are as follows: 00-77 A single octal digit specifies the unit on which the tape may be found. tar concatenates this digit to the default tape name /dev/mt to form the path name accessed. bb The next argument is a number between one and 20, specifying how many bblloocckkss are to be written in each tape record. tar determines the blocking factor automatically on input. When the blocking factor is not 1, the default tape name is /dev/rmt (the raw device is used). ff The next argument is the name of the tape aarrcchhiivvee. An argu- ment of '-' means the standard input for input directives and the standard output for output directives. ll tar preserves links within the structure it writes to tape but breaks any links across the boundary of the structure. This option requests that tar report all such broken links. mm Restore the mtime for each extracted file. vv Verbose flag. If directive is t, the output for each file in- cludes its mode, group id, user id, size, and mtime, in addi- COHERENT Lexicon Page 1 tar Command tar tion to its path name. Otherwise, tar writes the directive and the path name to the standard output for input directives or the standard error for output directives as each file is processed. ww For each file to be processed, tar writes the directive and path name to the terminal device, then reads a line from that device and acts on it as follows: nn Skip the file. yy Process the file. xx Exit immediately. An empty response is treated as n, and end of file is treated as x. If a directory is skipped, all its contents are skipped. If included, all its contents are processed with this option. UU Non-COHERENT systems have another implementation of this utility with the following bug: when the blocking factor is not one, the last few blocks of the last record written may be garbage. This bug is described elsewhere by other symptoms. This option says that the tape was created by the buggy program, so the trailing garbage should be ignored. ***** Files ***** /ddeevv/mmtt* -- Default tape /ddeevv/rrmmtt* -- Default tape for blocking factor greater than one ***** See Also ***** commands, dump, link(), restor, stat(), ustar ***** Notes ***** Path names must be less than 100 characters. The m option does not affect directories. The only way to extract the Nth version of a file is with the w option. If the m option is used to restore the mtime of an extracted file, an incremental dump may not dump the file. touch can be used to force the dump. COHERENT Lexicon Page 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.