HP-UX Reference (11i v2 04/09) - 1 User Commands N-Z (vol 2)
t
tar(1) tar(1)
A Suppress warning messages that tar did not archive a file’s access control list. By default,
tar writes a warning message for each file with optional ACL entries.
b Use the next arg argument as the blocking factor for archive records. The default is 20; the
maximum is at least 20. However, if the
f - modifier is used to specify standard input, the
default blocking factor is 1.
The blocking factor is determined automatically when reading nine-track tapes (key letters
x
and t). On nine-track tapes, the physical tape record length is the same as the block size. The
block size is defined as the logical record size times the blocking factor (number of logical
records per block).
The blocking factor must be specified when reading flexible disks and cartridge tapes if they
were written with a blocking factor other than the default.
If a
tar file is read using a blocking factor not equal to the one used when the file was written,
an error may occur at the end of the file but there may or may not be an actual error in the
read. To prevent this problem, a blocking factor of
1 can be used, although performance may
be reduced somewhat.
tar writes logical records of 512 bytes, independent of how logical records may be defined
elsewhere by other programs (such as variable-length records (lines) within an ASCII text file).
e Fail if the extent attributes are present in the files to be archived. If
tar fails for this reason,
the partially created destination file is not be removed.
f Use the next arg argument as the name of the archive instead of the default, /dev/rmt/0m
.
If the name of the file is
-, tar writes to standard output or reads from standard input,
whichever is appropriate, and the default blocking factor becomes 1. Thus, tar can be used
as the head or tail of a pipeline (see EXAMPLES).
h Force tar to follow symbolic links as if they were normal files or directories. Normally,
tar
does not follow symbolic links.
l Tell tar to complain if it cannot resolve all of the links to the files being saved. If
l is not
specified, no error messages are printed.
m Tell tar not to restore the modification time written on the archive. The modification time of
the file will be the time of extraction.
N Write a POSIX format archive. This format allows file names of up to 256 characters in
length, and correctly archives and restores the following file types: regular files, character and
block special devices, links, symbolic links, directories, and FIFO special files. It also stores
the user and group name of each file and attempts to use these names to determine the user-ID
and group-ID of a file when restoring it with the p function modifier. This is the default for-
mat.
o Suppress writing certain directory information that older versions of tar cannot handle on
input. tar normally writes information specifying owners and modes of directories in the
archive. Earlier versions of tar, when encountering this information, give error messages of
the form:
name
- cannot create
When o is used for reading, it causes the extracted file to take on the user and group IDs of the
user running the program rather than those on the tape. This is the default for the ordinary
user and can be overridden, to the extent that system protections allow, by using the p func-
tion modifier.
O Write a pre-POSIX format archive.
p Cause file to be restored to the original modes and ownerships written on the archive, if possi-
ble. This is the default for the superuser, and can be overridden by the o function modifier. If
system protections prevent the ordinary user from executing chown(), the error is ignored,
and the ownership is set to that of the restoring process (see chown(2)). The set-user-id, set-
group-id, and sticky bit information are restored as allowed by the protections defined by
chmod() if the chown() operation above succeeds.
nd Specify a particular nine-track tape drive and density, where n is a tape drive number:
0−7,
and d is the density: l = low (800 bpi); m = medium (1600 bpi); h = high (6250 bpi). This
modifier selects the drive on which the nine-track tape is mounted. The default is 0m.
Section 1−−908 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: September 2004