xref: /freebsd/bin/pax/pax.1 (revision 753d686d34e90c2a4fe6afa14bd5f19d94f17699)
14b88c807SRodney W. Grimes.\" Copyright (c) 1992 Keith Muller.
24b88c807SRodney W. Grimes.\" Copyright (c) 1992, 1993
34b88c807SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
44b88c807SRodney W. Grimes.\"
54b88c807SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
64b88c807SRodney W. Grimes.\" Keith Muller of the University of California, San Diego.
74b88c807SRodney W. Grimes.\"
84b88c807SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
94b88c807SRodney W. Grimes.\" modification, are permitted provided that the following conditions
104b88c807SRodney W. Grimes.\" are met:
114b88c807SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
124b88c807SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
134b88c807SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
144b88c807SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
154b88c807SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
164b88c807SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software
174b88c807SRodney W. Grimes.\"    must display the following acknowledgement:
184b88c807SRodney W. Grimes.\"	This product includes software developed by the University of
194b88c807SRodney W. Grimes.\"	California, Berkeley and its contributors.
204b88c807SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
214b88c807SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
224b88c807SRodney W. Grimes.\"    without specific prior written permission.
234b88c807SRodney W. Grimes.\"
244b88c807SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
254b88c807SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
264b88c807SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
274b88c807SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
284b88c807SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
294b88c807SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
304b88c807SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
314b88c807SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
324b88c807SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
334b88c807SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
344b88c807SRodney W. Grimes.\" SUCH DAMAGE.
354b88c807SRodney W. Grimes.\"
364b88c807SRodney W. Grimes.\"	@(#)pax.1	8.4 (Berkeley) 4/18/94
372a456239SPeter Wemm.\" $FreeBSD$
384b88c807SRodney W. Grimes.\"
394b88c807SRodney W. Grimes.Dd April 18, 1994
404b88c807SRodney W. Grimes.Dt PAX 1
41caa2db3bSRuslan Ermilov.Os
424b88c807SRodney W. Grimes.Sh NAME
434b88c807SRodney W. Grimes.Nm pax
444b88c807SRodney W. Grimes.Nd read and write file archives and copy directory hierarchies
454b88c807SRodney W. Grimes.Sh SYNOPSIS
46be8b1497SRuslan Ermilov.Nm
471192d531SKris Kennaway.Op Fl cdnvz
484b88c807SRodney W. Grimes.Bk -words
494b88c807SRodney W. Grimes.Op Fl f Ar archive
504b88c807SRodney W. Grimes.Ek
514b88c807SRodney W. Grimes.Bk -words
524b88c807SRodney W. Grimes.Op Fl s Ar replstr
531586940eSRuslan Ermilov.Ar ...\&
544b88c807SRodney W. Grimes.Ek
554b88c807SRodney W. Grimes.Bk -words
564b88c807SRodney W. Grimes.Op Fl U Ar user
571586940eSRuslan Ermilov.Ar ...\&
584b88c807SRodney W. Grimes.Ek
594b88c807SRodney W. Grimes.Bk -words
604b88c807SRodney W. Grimes.Op Fl G Ar group
611586940eSRuslan Ermilov.Ar ...\&
624b88c807SRodney W. Grimes.Ek
634b88c807SRodney W. Grimes.Bk -words
644b88c807SRodney W. Grimes.Oo
654b88c807SRodney W. Grimes.Fl T
664b88c807SRodney W. Grimes.Op Ar from_date
674b88c807SRodney W. Grimes.Op Ar ,to_date
684b88c807SRodney W. Grimes.Oc
691586940eSRuslan Ermilov.Ar ...\&
704b88c807SRodney W. Grimes.Ek
711586940eSRuslan Ermilov.Op Ar pattern ...\&
72be8b1497SRuslan Ermilov.Nm
734b88c807SRodney W. Grimes.Fl r
741192d531SKris Kennaway.Op Fl cdiknuvzDYZ
754b88c807SRodney W. Grimes.Bk -words
764b88c807SRodney W. Grimes.Op Fl f Ar archive
774b88c807SRodney W. Grimes.Ek
784b88c807SRodney W. Grimes.Bk -words
794b88c807SRodney W. Grimes.Op Fl o Ar options
801586940eSRuslan Ermilov.Ar ...\&
814b88c807SRodney W. Grimes.Ek
824b88c807SRodney W. Grimes.Bk -words
834b88c807SRodney W. Grimes.Op Fl p Ar string
841586940eSRuslan Ermilov.Ar ...\&
854b88c807SRodney W. Grimes.Ek
864b88c807SRodney W. Grimes.Bk -words
874b88c807SRodney W. Grimes.Op Fl s Ar replstr
881586940eSRuslan Ermilov.Ar ...\&
894b88c807SRodney W. Grimes.Ek
904b88c807SRodney W. Grimes.Op Fl E Ar limit
914b88c807SRodney W. Grimes.Bk -words
924b88c807SRodney W. Grimes.Op Fl U Ar user
931586940eSRuslan Ermilov.Ar ...\&
944b88c807SRodney W. Grimes.Ek
954b88c807SRodney W. Grimes.Bk -words
964b88c807SRodney W. Grimes.Op Fl G Ar group
971586940eSRuslan Ermilov.Ar ...\&
984b88c807SRodney W. Grimes.Ek
994b88c807SRodney W. Grimes.Bk -words
1004b88c807SRodney W. Grimes.Oo
1014b88c807SRodney W. Grimes.Fl T
1024b88c807SRodney W. Grimes.Op Ar from_date
1034b88c807SRodney W. Grimes.Op Ar ,to_date
1044b88c807SRodney W. Grimes.Oc
1051586940eSRuslan Ermilov.Ar ...\&
1064b88c807SRodney W. Grimes.Ek
1071586940eSRuslan Ermilov.Op Ar pattern ...\&
108be8b1497SRuslan Ermilov.Nm
1094b88c807SRodney W. Grimes.Fl w
1101192d531SKris Kennaway.Op Fl dituvzHLPX
1114b88c807SRodney W. Grimes.Bk -words
1124b88c807SRodney W. Grimes.Op Fl b Ar blocksize
1134b88c807SRodney W. Grimes.Ek
1144b88c807SRodney W. Grimes.Oo
1154b88c807SRodney W. Grimes.Op Fl a
1164b88c807SRodney W. Grimes.Op Fl f Ar archive
1174b88c807SRodney W. Grimes.Oc
1184b88c807SRodney W. Grimes.Bk -words
1194b88c807SRodney W. Grimes.Op Fl x Ar format
1204b88c807SRodney W. Grimes.Ek
1214b88c807SRodney W. Grimes.Bk -words
1224b88c807SRodney W. Grimes.Op Fl s Ar replstr
1231586940eSRuslan Ermilov.Ar ...\&
1244b88c807SRodney W. Grimes.Ek
1254b88c807SRodney W. Grimes.Bk -words
1264b88c807SRodney W. Grimes.Op Fl o Ar options
1271586940eSRuslan Ermilov.Ar ...\&
1284b88c807SRodney W. Grimes.Ek
1294b88c807SRodney W. Grimes.Bk -words
1304b88c807SRodney W. Grimes.Op Fl U Ar user
1311586940eSRuslan Ermilov.Ar ...\&
1324b88c807SRodney W. Grimes.Ek
1334b88c807SRodney W. Grimes.Bk -words
1344b88c807SRodney W. Grimes.Op Fl G Ar group
1351586940eSRuslan Ermilov.Ar ...\&
1364b88c807SRodney W. Grimes.Ek
1374b88c807SRodney W. Grimes.Bk -words
1384b88c807SRodney W. Grimes.Op Fl B Ar bytes
1394b88c807SRodney W. Grimes.Ek
1404b88c807SRodney W. Grimes.Bk -words
1414b88c807SRodney W. Grimes.Oo
1424b88c807SRodney W. Grimes.Fl T
1434b88c807SRodney W. Grimes.Op Ar from_date
1444b88c807SRodney W. Grimes.Op Ar ,to_date
1454b88c807SRodney W. Grimes.Op Ar /[c][m]
1464b88c807SRodney W. Grimes.Oc
1471586940eSRuslan Ermilov.Ar ...\&
1484b88c807SRodney W. Grimes.Ek
14947dec781SRuslan Ermilov.Op Ar
150be8b1497SRuslan Ermilov.Nm
1514b88c807SRodney W. Grimes.Fl r
1524b88c807SRodney W. Grimes.Fl w
1534b88c807SRodney W. Grimes.Op Fl diklntuvDHLPXYZ
1544b88c807SRodney W. Grimes.Bk -words
1554b88c807SRodney W. Grimes.Op Fl p Ar string
1561586940eSRuslan Ermilov.Ar ...\&
1574b88c807SRodney W. Grimes.Ek
1584b88c807SRodney W. Grimes.Bk -words
1594b88c807SRodney W. Grimes.Op Fl s Ar replstr
1601586940eSRuslan Ermilov.Ar ...\&
1614b88c807SRodney W. Grimes.Ek
1624b88c807SRodney W. Grimes.Bk -words
1634b88c807SRodney W. Grimes.Op Fl U Ar user
1641586940eSRuslan Ermilov.Ar ...\&
1654b88c807SRodney W. Grimes.Ek
1664b88c807SRodney W. Grimes.Bk -words
1674b88c807SRodney W. Grimes.Op Fl G Ar group
1681586940eSRuslan Ermilov.Ar ...\&
1694b88c807SRodney W. Grimes.Ek
1704b88c807SRodney W. Grimes.Bk -words
1714b88c807SRodney W. Grimes.Oo
1724b88c807SRodney W. Grimes.Fl T
1734b88c807SRodney W. Grimes.Op Ar from_date
1744b88c807SRodney W. Grimes.Op Ar ,to_date
1754b88c807SRodney W. Grimes.Op Ar /[c][m]
1764b88c807SRodney W. Grimes.Oc
1771586940eSRuslan Ermilov.Ar ...\&
1784b88c807SRodney W. Grimes.Ek
17947dec781SRuslan Ermilov.Op Ar
1804b88c807SRodney W. Grimes.Ar directory
1814b88c807SRodney W. Grimes.Sh DESCRIPTION
1824b88c807SRodney W. Grimes.Nm Pax
1834b88c807SRodney W. Grimeswill read, write, and list the members of an archive file,
1844b88c807SRodney W. Grimesand will copy directory hierarchies.
1854b88c807SRodney W. Grimes.Nm Pax
1864b88c807SRodney W. Grimesoperation is independent of the specific archive format,
1874b88c807SRodney W. Grimesand supports a wide variety of different archive formats.
1884b88c807SRodney W. GrimesA list of supported archive formats can be found under the description of the
1894b88c807SRodney W. Grimes.Fl x
1904b88c807SRodney W. Grimesoption.
1914b88c807SRodney W. Grimes.Pp
1924b88c807SRodney W. GrimesThe presence of the
1934b88c807SRodney W. Grimes.Fl r
1944b88c807SRodney W. Grimesand the
1954b88c807SRodney W. Grimes.Fl w
1964b88c807SRodney W. Grimesoptions specifies which of the following functional modes
197c9a8d1f4SPhilippe Charnier.Nm
1984b88c807SRodney W. Grimeswill operate under:
1994b88c807SRodney W. Grimes.Em list , read , write ,
2004b88c807SRodney W. Grimesand
2014b88c807SRodney W. Grimes.Em copy .
2024b88c807SRodney W. Grimes.Bl -tag -width 6n
2034b88c807SRodney W. Grimes.It <none>
2044b88c807SRodney W. Grimes.Em List .
2054b88c807SRodney W. Grimes.Nm Pax
2064b88c807SRodney W. Grimeswill write to
2074b88c807SRodney W. Grimes.Dv standard output
2084b88c807SRodney W. Grimesa table of contents of the members of the archive file read from
2094b88c807SRodney W. Grimes.Dv standard input ,
2104b88c807SRodney W. Grimeswhose pathnames match the specified
2114b88c807SRodney W. Grimes.Ar patterns .
2124b88c807SRodney W. GrimesThe table of contents contains one filename per line
2134b88c807SRodney W. Grimesand is written using single line buffering.
2144b88c807SRodney W. Grimes.It Fl r
2154b88c807SRodney W. Grimes.Em Read .
2164b88c807SRodney W. Grimes.Nm Pax
2174b88c807SRodney W. Grimesextracts the members of the archive file read from the
2184b88c807SRodney W. Grimes.Dv standard input ,
2194b88c807SRodney W. Grimeswith pathnames matching the specified
2204b88c807SRodney W. Grimes.Ar patterns .
2214b88c807SRodney W. GrimesThe archive format and blocking is automatically determined on input.
2224b88c807SRodney W. GrimesWhen an extracted file is a directory, the entire file hierarchy
2234b88c807SRodney W. Grimesrooted at that directory is extracted.
2244b88c807SRodney W. GrimesAll extracted files are created relative to the current file hierarchy.
2254b88c807SRodney W. GrimesThe setting of ownership, access and modification times, and file mode of
2264b88c807SRodney W. Grimesthe extracted files are discussed in more detail under the
2274b88c807SRodney W. Grimes.Fl p
2284b88c807SRodney W. Grimesoption.
2294b88c807SRodney W. Grimes.It Fl w
2304b88c807SRodney W. Grimes.Em Write .
2314b88c807SRodney W. Grimes.Nm Pax
2324b88c807SRodney W. Grimeswrites an archive containing the
2334b88c807SRodney W. Grimes.Ar file
2344b88c807SRodney W. Grimesoperands to
2354b88c807SRodney W. Grimes.Dv standard output
2364b88c807SRodney W. Grimesusing the specified archive format.
2374b88c807SRodney W. GrimesWhen no
2384b88c807SRodney W. Grimes.Ar file
2394b88c807SRodney W. Grimesoperands are specified, a list of files to copy with one per line is read from
2404b88c807SRodney W. Grimes.Dv standard input .
2414b88c807SRodney W. GrimesWhen a
2424b88c807SRodney W. Grimes.Ar file
2434b88c807SRodney W. Grimesoperand is also a directory, the entire file hierarchy rooted
2444b88c807SRodney W. Grimesat that directory will be included.
2454b88c807SRodney W. Grimes.It Fl r Fl w
2464b88c807SRodney W. Grimes.Em Copy .
2474b88c807SRodney W. Grimes.Nm Pax
2484b88c807SRodney W. Grimescopies the
2494b88c807SRodney W. Grimes.Ar file
2504b88c807SRodney W. Grimesoperands to the destination
2514b88c807SRodney W. Grimes.Ar directory .
2524b88c807SRodney W. GrimesWhen no
2534b88c807SRodney W. Grimes.Ar file
2544b88c807SRodney W. Grimesoperands are specified, a list of files to copy with one per line is read from
2554b88c807SRodney W. Grimesthe
2564b88c807SRodney W. Grimes.Dv standard input .
2574b88c807SRodney W. GrimesWhen a
2584b88c807SRodney W. Grimes.Ar file
2594b88c807SRodney W. Grimesoperand is also a directory the entire file
2604b88c807SRodney W. Grimeshierarchy rooted at that directory will be included.
2614b88c807SRodney W. GrimesThe effect of the
2624b88c807SRodney W. Grimes.Em copy
2634b88c807SRodney W. Grimesis as if the copied files were written to an archive file and then
2644b88c807SRodney W. Grimessubsequently extracted, except that there may be hard links between
2654b88c807SRodney W. Grimesthe original and the copied files (see the
2664b88c807SRodney W. Grimes.Fl l
2674b88c807SRodney W. Grimesoption below).
2684b88c807SRodney W. Grimes.Pp
2694b88c807SRodney W. Grimes.Em Warning :
2704b88c807SRodney W. GrimesThe destination
2714b88c807SRodney W. Grimes.Ar directory
2724b88c807SRodney W. Grimesmust not be one of the
2734b88c807SRodney W. Grimes.Ar file
2744b88c807SRodney W. Grimesoperands or a member of a file hierarchy rooted at one of the
2754b88c807SRodney W. Grimes.Ar file
2764b88c807SRodney W. Grimesoperands.
2774b88c807SRodney W. GrimesThe result of a
2784b88c807SRodney W. Grimes.Em copy
2794b88c807SRodney W. Grimesunder these conditions is unpredictable.
2804b88c807SRodney W. Grimes.El
2814b88c807SRodney W. Grimes.Pp
2824b88c807SRodney W. GrimesWhile processing a damaged archive during a
2834b88c807SRodney W. Grimes.Em read
2844b88c807SRodney W. Grimesor
2854b88c807SRodney W. Grimes.Em list
2864b88c807SRodney W. Grimesoperation,
287c9a8d1f4SPhilippe Charnier.Nm
2884b88c807SRodney W. Grimeswill attempt to recover from media defects and will search through the archive
2894b88c807SRodney W. Grimesto locate and process the largest number of archive members possible (see the
2904b88c807SRodney W. Grimes.Fl E
2914b88c807SRodney W. Grimesoption for more details on error handling).
2924b88c807SRodney W. Grimes.Sh OPERANDS
2934b88c807SRodney W. GrimesThe
2944b88c807SRodney W. Grimes.Ar directory
2954b88c807SRodney W. Grimesoperand specifies a destination directory pathname.
2964b88c807SRodney W. GrimesIf the
2974b88c807SRodney W. Grimes.Ar directory
2984b88c807SRodney W. Grimesoperand does not exist, or it is not writable by the user,
2994b88c807SRodney W. Grimesor it is not of type directory,
300c9a8d1f4SPhilippe Charnier.Nm
3014b88c807SRodney W. Grimeswill exit with a non-zero exit status.
3024b88c807SRodney W. Grimes.Pp
3034b88c807SRodney W. GrimesThe
3044b88c807SRodney W. Grimes.Ar pattern
3054b88c807SRodney W. Grimesoperand is used to select one or more pathnames of archive members.
3064b88c807SRodney W. GrimesArchive members are selected using the pattern matching notation described
3074b88c807SRodney W. Grimesby
3084b88c807SRodney W. Grimes.Xr fnmatch 3 .
3094b88c807SRodney W. GrimesWhen the
3104b88c807SRodney W. Grimes.Ar pattern
3114b88c807SRodney W. Grimesoperand is not supplied, all members of the archive will be selected.
3124b88c807SRodney W. GrimesWhen a
3134b88c807SRodney W. Grimes.Ar pattern
3144b88c807SRodney W. Grimesmatches a directory, the entire file hierarchy rooted at that directory will
3154b88c807SRodney W. Grimesbe selected.
3164b88c807SRodney W. GrimesWhen a
3174b88c807SRodney W. Grimes.Ar pattern
3184b88c807SRodney W. Grimesoperand does not select at least one archive member,
319c9a8d1f4SPhilippe Charnier.Nm
3204b88c807SRodney W. Grimeswill write these
3214b88c807SRodney W. Grimes.Ar pattern
3224b88c807SRodney W. Grimesoperands in a diagnostic message to
3234b88c807SRodney W. Grimes.Dv standard error
3244b88c807SRodney W. Grimesand then exit with a non-zero exit status.
3254b88c807SRodney W. Grimes.Pp
3264b88c807SRodney W. GrimesThe
3274b88c807SRodney W. Grimes.Ar file
3284b88c807SRodney W. Grimesoperand specifies the pathname of a file to be copied or archived.
3294b88c807SRodney W. GrimesWhen a
3304b88c807SRodney W. Grimes.Ar file
3314b88c807SRodney W. Grimesoperand does not select at least one archive member,
332c9a8d1f4SPhilippe Charnier.Nm
3334b88c807SRodney W. Grimeswill write these
3344b88c807SRodney W. Grimes.Ar file
3354b88c807SRodney W. Grimesoperand pathnames in a diagnostic message to
3364b88c807SRodney W. Grimes.Dv standard error
3374b88c807SRodney W. Grimesand then exit with a non-zero exit status.
3384b88c807SRodney W. Grimes.Sh OPTIONS
3394b88c807SRodney W. GrimesThe following options are supported:
3404b88c807SRodney W. Grimes.Bl -tag -width 4n
3414b88c807SRodney W. Grimes.It Fl r
3424b88c807SRodney W. GrimesRead an archive file from
3434b88c807SRodney W. Grimes.Dv standard input
3444b88c807SRodney W. Grimesand extract the specified
3454b88c807SRodney W. Grimes.Ar files .
3464b88c807SRodney W. GrimesIf any intermediate directories are needed in order to extract an archive
3474b88c807SRodney W. Grimesmember, these directories will be created as if
3484b88c807SRodney W. Grimes.Xr mkdir 2
3494b88c807SRodney W. Grimeswas called with the bitwise inclusive
3504b88c807SRodney W. Grimes.Dv OR
3514b88c807SRodney W. Grimesof
3524b88c807SRodney W. Grimes.Dv S_IRWXU , S_IRWXG ,
3534b88c807SRodney W. Grimesand
3544b88c807SRodney W. Grimes.Dv S_IRWXO
3554b88c807SRodney W. Grimesas the mode argument.
3564b88c807SRodney W. GrimesWhen the selected archive format supports the specification of linked
3574b88c807SRodney W. Grimesfiles and these files cannot be linked while the archive is being extracted,
358c9a8d1f4SPhilippe Charnier.Nm
3594b88c807SRodney W. Grimeswill write a diagnostic message to
3604b88c807SRodney W. Grimes.Dv standard error
3614b88c807SRodney W. Grimesand exit with a non-zero exit status at the completion of operation.
3624b88c807SRodney W. Grimes.It Fl w
3634b88c807SRodney W. GrimesWrite files to the
3644b88c807SRodney W. Grimes.Dv standard output
3654b88c807SRodney W. Grimesin the specified archive format.
3664b88c807SRodney W. GrimesWhen no
3674b88c807SRodney W. Grimes.Ar file
3684b88c807SRodney W. Grimesoperands are specified,
3694b88c807SRodney W. Grimes.Dv standard input
3704b88c807SRodney W. Grimesis read for a list of pathnames with one per line without any leading or
3714b88c807SRodney W. Grimestrailing
3724b88c807SRodney W. Grimes.Aq blanks .
3734b88c807SRodney W. Grimes.It Fl a
3744b88c807SRodney W. GrimesAppend
3754b88c807SRodney W. Grimes.Ar files
3764b88c807SRodney W. Grimesto the end of an archive that was previously written.
3774b88c807SRodney W. GrimesIf an archive format is not specified with a
3784b88c807SRodney W. Grimes.Fl x
3794b88c807SRodney W. Grimesoption, the format currently being used in the archive will be selected.
3804b88c807SRodney W. GrimesAny attempt to append to an archive in a format different from the
3814b88c807SRodney W. Grimesformat already used in the archive will cause
382c9a8d1f4SPhilippe Charnier.Nm
3834b88c807SRodney W. Grimesto exit immediately
3844b88c807SRodney W. Grimeswith a non-zero exit status.
3854b88c807SRodney W. GrimesThe blocking size used in the archive volume where writing starts
3864b88c807SRodney W. Grimeswill continue to be used for the remainder of that archive volume.
3874b88c807SRodney W. Grimes.Pp
3884b88c807SRodney W. Grimes.Em Warning :
3894b88c807SRodney W. GrimesMany storage devices are not able to support the operations necessary
3904b88c807SRodney W. Grimesto perform an append operation.
3914b88c807SRodney W. GrimesAny attempt to append to an archive stored on such a device may damage the
3924b88c807SRodney W. Grimesarchive or have other unpredictable results.
3934b88c807SRodney W. GrimesTape drives in particular are more likely to not support an append operation.
3944b88c807SRodney W. GrimesAn archive stored in a regular file system file or on a disk device will
3954b88c807SRodney W. Grimesusually support an append operation.
3964b88c807SRodney W. Grimes.It Fl b Ar blocksize
3974b88c807SRodney W. GrimesWhen
3984b88c807SRodney W. Grimes.Em writing
3994b88c807SRodney W. Grimesan archive,
4004b88c807SRodney W. Grimesblock the output at a positive decimal integer number of
4014b88c807SRodney W. Grimesbytes per write to the archive file.
4024b88c807SRodney W. GrimesThe
4034b88c807SRodney W. Grimes.Ar blocksize
404b1787decSKris Kennawaymust be a multiple of 512 bytes with a maximum of 64512 bytes.
405b1787decSKris KennawayArchives larger than 32256 bytes violate the
406b1787decSKris Kennaway.Tn POSIX
407b1787decSKris Kennawaystandard and will not be portable to all systems.
4084b88c807SRodney W. GrimesA
4094b88c807SRodney W. Grimes.Ar blocksize
4104b88c807SRodney W. Grimescan end with
4114b88c807SRodney W. Grimes.Li k
4124b88c807SRodney W. Grimesor
4134b88c807SRodney W. Grimes.Li b
4144b88c807SRodney W. Grimesto specify multiplication by 1024 (1K) or 512, respectively.
4154b88c807SRodney W. GrimesA pair of
4164b88c807SRodney W. Grimes.Ar blocksizes
4174b88c807SRodney W. Grimescan be separated by
4184b88c807SRodney W. Grimes.Li x
4194b88c807SRodney W. Grimesto indicate a product.
4204b88c807SRodney W. GrimesA specific archive device may impose additional restrictions on the size
4214b88c807SRodney W. Grimesof blocking it will support.
4224b88c807SRodney W. GrimesWhen blocking is not specified, the default
4234b88c807SRodney W. Grimes.Ar blocksize
4244b88c807SRodney W. Grimesis dependent on the specific archive format being used (see the
4254b88c807SRodney W. Grimes.Fl x
4264b88c807SRodney W. Grimesoption).
4274b88c807SRodney W. Grimes.It Fl c
4284b88c807SRodney W. GrimesMatch all file or archive members
4294b88c807SRodney W. Grimes.Em except
4304b88c807SRodney W. Grimesthose specified by the
4314b88c807SRodney W. Grimes.Ar pattern
4324b88c807SRodney W. Grimesand
4334b88c807SRodney W. Grimes.Ar file
4344b88c807SRodney W. Grimesoperands.
4354b88c807SRodney W. Grimes.It Fl d
4364b88c807SRodney W. GrimesCause files of type directory being copied or archived, or archive members of
4374b88c807SRodney W. Grimestype directory being extracted, to match only the directory file or archive
4384b88c807SRodney W. Grimesmember and not the file hierarchy rooted at the directory.
4394b88c807SRodney W. Grimes.It Fl f Ar archive
4404b88c807SRodney W. GrimesSpecify
4414b88c807SRodney W. Grimes.Ar archive
4424b88c807SRodney W. Grimesas the pathname of the input or output archive, overriding the default
4434b88c807SRodney W. Grimes.Dv standard input
4444b88c807SRodney W. Grimes(for
4454b88c807SRodney W. Grimes.Em list
4464b88c807SRodney W. Grimesand
4474b88c807SRodney W. Grimes.Em read )
4484b88c807SRodney W. Grimesor
4494b88c807SRodney W. Grimes.Dv standard output
4504b88c807SRodney W. Grimes(for
4514b88c807SRodney W. Grimes.Em write ) .
4524b88c807SRodney W. GrimesA single archive may span multiple files and different archive devices.
4534b88c807SRodney W. GrimesWhen required,
454c9a8d1f4SPhilippe Charnier.Nm
4554b88c807SRodney W. Grimeswill prompt for the pathname of the file or device of the next volume in the
4564b88c807SRodney W. Grimesarchive.
4574b88c807SRodney W. Grimes.It Fl i
4584b88c807SRodney W. GrimesInteractively rename files or archive members.
4594b88c807SRodney W. GrimesFor each archive member matching a
4604b88c807SRodney W. Grimes.Ar pattern
4614b88c807SRodney W. Grimesoperand or each file matching a
4624b88c807SRodney W. Grimes.Ar file
4634b88c807SRodney W. Grimesoperand,
464c9a8d1f4SPhilippe Charnier.Nm
4654b88c807SRodney W. Grimeswill prompt to
4664b88c807SRodney W. Grimes.Pa /dev/tty
4674b88c807SRodney W. Grimesgiving the name of the file, its file mode and its modification time.
4684b88c807SRodney W. Grimes.Nm Pax
4694b88c807SRodney W. Grimeswill then read a line from
4704b88c807SRodney W. Grimes.Pa /dev/tty .
4714b88c807SRodney W. GrimesIf this line is blank, the file or archive member is skipped.
4724b88c807SRodney W. GrimesIf this line consists of a single period, the
4734b88c807SRodney W. Grimesfile or archive member is processed with no modification to its name.
4744b88c807SRodney W. GrimesOtherwise, its name is replaced with the contents of the line.
4754b88c807SRodney W. Grimes.Nm Pax
4764b88c807SRodney W. Grimeswill immediately exit with a non-zero exit status if
4774b88c807SRodney W. Grimes.Dv <EOF>
4784b88c807SRodney W. Grimesis encountered when reading a response or if
4794b88c807SRodney W. Grimes.Pa /dev/tty
4804b88c807SRodney W. Grimescannot be opened for reading and writing.
4814b88c807SRodney W. Grimes.It Fl k
4824b88c807SRodney W. GrimesDo not overwrite existing files.
4834b88c807SRodney W. Grimes.It Fl l
4844e86fcacSSheldon HearnLink files.
4854e86fcacSSheldon Hearn(The letter ell).
4864b88c807SRodney W. GrimesIn the
4874b88c807SRodney W. Grimes.Em copy
48894ba280cSRuslan Ermilovmode
48994ba280cSRuslan Ermilov.Pq Fl r w ,
4904b88c807SRodney W. Grimeshard links are made between the source and destination file hierarchies
4914b88c807SRodney W. Grimeswhenever possible.
4924b88c807SRodney W. Grimes.It Fl n
4934b88c807SRodney W. GrimesSelect the first archive member that matches each
4944b88c807SRodney W. Grimes.Ar pattern
4954b88c807SRodney W. Grimesoperand.
4964b88c807SRodney W. GrimesNo more than one archive member is matched for each
4974b88c807SRodney W. Grimes.Ar pattern .
4984b88c807SRodney W. GrimesWhen members of type directory are matched, the file hierarchy rooted at that
4994b88c807SRodney W. Grimesdirectory is also matched (unless
5004b88c807SRodney W. Grimes.Fl d
5014b88c807SRodney W. Grimesis also specified).
5024b88c807SRodney W. Grimes.It Fl o Ar options
5034b88c807SRodney W. GrimesInformation to modify the algorithm for extracting or writing archive files
5044b88c807SRodney W. Grimeswhich is specific to the archive format specified by
5054b88c807SRodney W. Grimes.Fl x .
5064b88c807SRodney W. GrimesIn general,
5074b88c807SRodney W. Grimes.Ar options
5084b88c807SRodney W. Grimestake the form:
5094b88c807SRodney W. Grimes.Cm name=value
5104b88c807SRodney W. Grimes.It Fl p Ar string
5114b88c807SRodney W. GrimesSpecify one or more file characteristic options (privileges).
5124b88c807SRodney W. GrimesThe
5134b88c807SRodney W. Grimes.Ar string
5144b88c807SRodney W. Grimesoption-argument is a string specifying file characteristics to be retained or
5154b88c807SRodney W. Grimesdiscarded on extraction.
5164b88c807SRodney W. GrimesThe string consists of the specification characters
5174b88c807SRodney W. Grimes.Cm a , e , m , o ,
5184b88c807SRodney W. Grimesand
5194b88c807SRodney W. Grimes.Cm p .
5204b88c807SRodney W. GrimesMultiple characteristics can be concatenated within the same string
5214b88c807SRodney W. Grimesand multiple
5224b88c807SRodney W. Grimes.Fl p
5234b88c807SRodney W. Grimesoptions can be specified.
5244b88c807SRodney W. GrimesThe meaning of the specification characters are as follows:
5254b88c807SRodney W. Grimes.Bl -tag -width 2n
5264b88c807SRodney W. Grimes.It Cm a
5274b88c807SRodney W. GrimesDo not preserve file access times.
5284b88c807SRodney W. GrimesBy default, file access times are preserved whenever possible.
5294b88c807SRodney W. Grimes.It Cm e
5304b88c807SRodney W. Grimes.Sq Preserve everything ,
5314b88c807SRodney W. Grimesthe user ID, group ID, file mode bits,
5324b88c807SRodney W. Grimesfile access time, and file modification time.
5334b88c807SRodney W. GrimesThis is intended to be used by
5344b88c807SRodney W. Grimes.Em root ,
5354b88c807SRodney W. Grimessomeone with all the appropriate privileges, in order to preserve all
5364b88c807SRodney W. Grimesaspects of the files as they are recorded in the archive.
5374b88c807SRodney W. GrimesThe
5384b88c807SRodney W. Grimes.Cm e
5394b88c807SRodney W. Grimesflag is the sum of the
5404b88c807SRodney W. Grimes.Cm o
5414b88c807SRodney W. Grimesand
5424b88c807SRodney W. Grimes.Cm p
5434b88c807SRodney W. Grimesflags.
5444b88c807SRodney W. Grimes.It Cm m
5454b88c807SRodney W. GrimesDo not preserve file modification times.
5464b88c807SRodney W. GrimesBy default, file modification times are preserved whenever possible.
5474b88c807SRodney W. Grimes.It Cm o
5484b88c807SRodney W. GrimesPreserve the user ID and group ID.
5494b88c807SRodney W. Grimes.It Cm p
5504b88c807SRodney W. Grimes.Sq Preserve
5514b88c807SRodney W. Grimesthe file mode bits.
5524b88c807SRodney W. GrimesThis intended to be used by a
5534b88c807SRodney W. Grimes.Em user
5544b88c807SRodney W. Grimeswith regular privileges who wants to preserve all aspects of the file other
5554b88c807SRodney W. Grimesthan the ownership.
5564b88c807SRodney W. GrimesThe file times are preserved by default, but two other flags are offered to
5574b88c807SRodney W. Grimesdisable this and use the time of extraction instead.
5584b88c807SRodney W. Grimes.El
5594b88c807SRodney W. Grimes.Pp
5604b88c807SRodney W. GrimesIn the preceding list,
5614b88c807SRodney W. Grimes.Sq preserve
5624b88c807SRodney W. Grimesindicates that an attribute stored in the archive is given to the
5634b88c807SRodney W. Grimesextracted file, subject to the permissions of the invoking
5644b88c807SRodney W. Grimesprocess.
5654b88c807SRodney W. GrimesOtherwise the attribute of the extracted file is determined as
5664b88c807SRodney W. Grimespart of the normal file creation action.
5674b88c807SRodney W. GrimesIf neither the
5684b88c807SRodney W. Grimes.Cm e
5694b88c807SRodney W. Grimesnor the
5704b88c807SRodney W. Grimes.Cm o
5714b88c807SRodney W. Grimesspecification character is specified, or the user ID and group ID are not
5724b88c807SRodney W. Grimespreserved for any reason,
573c9a8d1f4SPhilippe Charnier.Nm
5744b88c807SRodney W. Grimeswill not set the
5754b88c807SRodney W. Grimes.Dv S_ISUID
5764b88c807SRodney W. Grimes.Em ( setuid )
5774b88c807SRodney W. Grimesand
5784b88c807SRodney W. Grimes.Dv S_ISGID
5794b88c807SRodney W. Grimes.Em ( setgid )
5804b88c807SRodney W. Grimesbits of the file mode.
5814b88c807SRodney W. GrimesIf the preservation of any of these items fails for any reason,
582c9a8d1f4SPhilippe Charnier.Nm
5834b88c807SRodney W. Grimeswill write a diagnostic message to
5844b88c807SRodney W. Grimes.Dv standard error .
5854b88c807SRodney W. GrimesFailure to preserve these items will affect the final exit status,
5864b88c807SRodney W. Grimesbut will not cause the extracted file to be deleted.
5874b88c807SRodney W. GrimesIf the file characteristic letters in any of the string option-arguments are
5884b88c807SRodney W. Grimesduplicated or conflict with each other, the one(s) given last will take
5894b88c807SRodney W. Grimesprecedence.
5904b88c807SRodney W. GrimesFor example, if
5914b88c807SRodney W. Grimes.Dl Fl p Ar eme
5924b88c807SRodney W. Grimesis specified, file modification times are still preserved.
5934b88c807SRodney W. Grimes.It Fl s Ar replstr
5944b88c807SRodney W. GrimesModify the file or archive member names specified by the
5954b88c807SRodney W. Grimes.Ar pattern
5964b88c807SRodney W. Grimesor
5974b88c807SRodney W. Grimes.Ar file
5984b88c807SRodney W. Grimesoperands according to the substitution expression
5994b88c807SRodney W. Grimes.Ar replstr ,
6004b88c807SRodney W. Grimesusing the syntax of the
6014b88c807SRodney W. Grimes.Xr ed 1
6024b88c807SRodney W. Grimesutility regular expressions.
6034b88c807SRodney W. GrimesThe format of these regular expressions are:
6044b88c807SRodney W. Grimes.Dl /old/new/[gp]
6054b88c807SRodney W. GrimesAs in
6064b88c807SRodney W. Grimes.Xr ed 1 ,
6074b88c807SRodney W. Grimes.Cm old
6084b88c807SRodney W. Grimesis a basic regular expression and
6094b88c807SRodney W. Grimes.Cm new
6104b88c807SRodney W. Grimescan contain an ampersand (&), \\n (where n is a digit) back-references,
6114b88c807SRodney W. Grimesor subexpression matching.
6124b88c807SRodney W. GrimesThe
6134b88c807SRodney W. Grimes.Cm old
6144b88c807SRodney W. Grimesstring may also contain
6154b88c807SRodney W. Grimes.Dv <newline>
6164b88c807SRodney W. Grimescharacters.
6174b88c807SRodney W. GrimesAny non-null character can be used as a delimiter (/ is shown here).
6184b88c807SRodney W. GrimesMultiple
6194b88c807SRodney W. Grimes.Fl s
6204b88c807SRodney W. Grimesexpressions can be specified.
6214b88c807SRodney W. GrimesThe expressions are applied in the order they are specified on the
6224b88c807SRodney W. Grimescommand line, terminating with the first successful substitution.
6234b88c807SRodney W. GrimesThe optional trailing
6244b88c807SRodney W. Grimes.Cm g
6254b88c807SRodney W. Grimescontinues to apply the substitution expression to the pathname substring
6264b88c807SRodney W. Grimeswhich starts with the first character following the end of the last successful
627bef84d6bSSheldon Hearnsubstitution.
628bef84d6bSSheldon HearnThe first unsuccessful substitution stops the operation of the
6294b88c807SRodney W. Grimes.Cm g
6304b88c807SRodney W. Grimesoption.
6314b88c807SRodney W. GrimesThe optional trailing
6324b88c807SRodney W. Grimes.Cm p
6334b88c807SRodney W. Grimeswill cause the final result of a successful substitution to be written to
6344b88c807SRodney W. Grimes.Dv standard error
6354b88c807SRodney W. Grimesin the following format:
6364b88c807SRodney W. Grimes.Dl <original pathname> >> <new pathname>
6374b88c807SRodney W. GrimesFile or archive member names that substitute to the empty string
6384b88c807SRodney W. Grimesare not selected and will be skipped.
6394b88c807SRodney W. Grimes.It Fl t
6404b88c807SRodney W. GrimesReset the access times of any file or directory read or accessed by
641c9a8d1f4SPhilippe Charnier.Nm
6424b88c807SRodney W. Grimesto be the same as they were before being read or accessed by
643be8b1497SRuslan Ermilov.Nm .
6444b88c807SRodney W. Grimes.It Fl u
6454b88c807SRodney W. GrimesIgnore files that are older (having a less recent file modification time)
6464b88c807SRodney W. Grimesthan a pre-existing file or archive member with the same name.
6474b88c807SRodney W. GrimesDuring
6484b88c807SRodney W. Grimes.Em read ,
6494b88c807SRodney W. Grimesan archive member with the same name as a file in the file system will be
6504b88c807SRodney W. Grimesextracted if the archive member is newer than the file.
6514b88c807SRodney W. GrimesDuring
6524b88c807SRodney W. Grimes.Em write ,
6534b88c807SRodney W. Grimesa file system member with the same name as an archive member will be
6544b88c807SRodney W. Grimeswritten to the archive if it is newer than the archive member.
6554b88c807SRodney W. GrimesDuring
6564b88c807SRodney W. Grimes.Em copy ,
6574b88c807SRodney W. Grimesthe file in the destination hierarchy is replaced by the file in the source
6584b88c807SRodney W. Grimeshierarchy or by a link to the file in the source hierarchy if the file in
6594b88c807SRodney W. Grimesthe source hierarchy is newer.
6604b88c807SRodney W. Grimes.It Fl v
6614b88c807SRodney W. GrimesDuring a
6624b88c807SRodney W. Grimes.Em list
6634b88c807SRodney W. Grimesoperation, produce a verbose table of contents using the format of the
6644b88c807SRodney W. Grimes.Xr ls 1
6654b88c807SRodney W. Grimesutility with the
6664b88c807SRodney W. Grimes.Fl l
6674b88c807SRodney W. Grimesoption.
6684b88c807SRodney W. GrimesFor pathnames representing a hard link to a previous member of the archive,
6694b88c807SRodney W. Grimesthe output has the format:
6704b88c807SRodney W. Grimes.Dl <ls -l listing> == <link name>
6714b88c807SRodney W. GrimesFor pathnames representing a symbolic link, the output has the format:
6724b88c807SRodney W. Grimes.Dl <ls -l listing> => <link name>
6734b88c807SRodney W. GrimesWhere <ls -l listing> is the output format specified by the
6744b88c807SRodney W. Grimes.Xr ls 1
6754b88c807SRodney W. Grimesutility when used with the
6764b88c807SRodney W. Grimes.Fl l
6774b88c807SRodney W. Grimesoption.
67894ba280cSRuslan ErmilovOtherwise for all the other operational modes
67994ba280cSRuslan Ermilov.Em ( read , write ,
6804b88c807SRodney W. Grimesand
6814b88c807SRodney W. Grimes.Em copy ) ,
6824b88c807SRodney W. Grimespathnames are written and flushed to
6834b88c807SRodney W. Grimes.Dv standard error
6844b88c807SRodney W. Grimeswithout a trailing
6854b88c807SRodney W. Grimes.Dv <newline>
6864b88c807SRodney W. Grimesas soon as processing begins on that file or
6874b88c807SRodney W. Grimesarchive member.
6884b88c807SRodney W. GrimesThe trailing
6894b88c807SRodney W. Grimes.Dv <newline> ,
6904b88c807SRodney W. Grimesis not buffered, and is written only after the file has been read or written.
6914b88c807SRodney W. Grimes.It Fl x Ar format
6924b88c807SRodney W. GrimesSpecify the output archive format, with the default format being
6934b88c807SRodney W. Grimes.Ar ustar .
6944b88c807SRodney W. Grimes.Nm Pax
6954b88c807SRodney W. Grimescurrently supports the following formats:
6964b88c807SRodney W. Grimes.Bl -tag -width "sv4cpio"
6974b88c807SRodney W. Grimes.It Ar cpio
6984b88c807SRodney W. GrimesThe extended cpio interchange format specified in the
6994b88c807SRodney W. Grimes.St -p1003.2
7004b88c807SRodney W. Grimesstandard.
7014b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes.
7024b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links
7034b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by
704c9a8d1f4SPhilippe Charnier.Nm
7054b88c807SRodney W. Grimesand is repaired.
7064b88c807SRodney W. Grimes.It Ar bcpio
7074b88c807SRodney W. GrimesThe old binary cpio format.
7084b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes.
7094b88c807SRodney W. GrimesThis format is not very portable and should not be used when other formats
7104b88c807SRodney W. Grimesare available.
7114b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links
7124b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by
713c9a8d1f4SPhilippe Charnier.Nm
7144b88c807SRodney W. Grimesand is repaired.
7154b88c807SRodney W. Grimes.It Ar sv4cpio
7164b88c807SRodney W. GrimesThe System V release 4 cpio.
7174b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes.
7184b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links
7194b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by
720c9a8d1f4SPhilippe Charnier.Nm
7214b88c807SRodney W. Grimesand is repaired.
7224b88c807SRodney W. Grimes.It Ar sv4crc
7234b88c807SRodney W. GrimesThe System V release 4 cpio with file crc checksums.
7244b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes.
7254b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links
7264b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by
727c9a8d1f4SPhilippe Charnier.Nm
7284b88c807SRodney W. Grimesand is repaired.
7294b88c807SRodney W. Grimes.It Ar tar
730753d686dSRuslan ErmilovThe old
731753d686dSRuslan Ermilov.Bx
732753d686dSRuslan Ermilovtar format as found in
733753d686dSRuslan Ermilov.Bx 4.3 .
7344b88c807SRodney W. GrimesThe default blocksize for this format is 10240 bytes.
7354b88c807SRodney W. GrimesPathnames stored by this format must be 100 characters or less in length.
7364b88c807SRodney W. GrimesOnly
7374b88c807SRodney W. Grimes.Em regular
7384b88c807SRodney W. Grimesfiles,
7394b88c807SRodney W. Grimes.Em  hard links , soft links ,
7404b88c807SRodney W. Grimesand
7414b88c807SRodney W. Grimes.Em  directories
7424b88c807SRodney W. Grimeswill be archived (other file system types are not supported).
7434b88c807SRodney W. GrimesFor backwards compatibility with even older tar formats, a
7444b88c807SRodney W. Grimes.Fl o
7454b88c807SRodney W. Grimesoption can be used when writing an archive to omit the storage of directories.
7464b88c807SRodney W. GrimesThis option takes the form:
7474b88c807SRodney W. Grimes.Dl Fl o Cm write_opt=nodir
7484b88c807SRodney W. Grimes.It Ar ustar
7494b88c807SRodney W. GrimesThe extended tar interchange format specified in the
7504b88c807SRodney W. Grimes.St -p1003.2
7514b88c807SRodney W. Grimesstandard.
7524b88c807SRodney W. GrimesThe default blocksize for this format is 10240 bytes.
7534b88c807SRodney W. GrimesPathnames stored by this format must be 250 characters or less in length.
7544b88c807SRodney W. Grimes.El
7554b88c807SRodney W. Grimes.Pp
7564b88c807SRodney W. Grimes.Nm Pax
7574b88c807SRodney W. Grimeswill detect and report any file that it is unable to store or extract
7584b88c807SRodney W. Grimesas the result of any specific archive format restrictions.
7594b88c807SRodney W. GrimesThe individual archive formats may impose additional restrictions on use.
7604b88c807SRodney W. GrimesTypical archive format restrictions include (but are not limited to):
7614b88c807SRodney W. Grimesfile pathname length, file size, link pathname length and the type of the file.
7621192d531SKris Kennaway.It Fl z
7631192d531SKris KennawayUse
7641192d531SKris Kennaway.Xr gzip 1
7651192d531SKris Kennawayto compress (decompress) the archive while writing (reading).
7661192d531SKris KennawayIncompatible with
7671192d531SKris Kennaway.Fl a .
7684b88c807SRodney W. Grimes.It Fl B Ar bytes
7694b88c807SRodney W. GrimesLimit the number of bytes written to a single archive volume to
7704b88c807SRodney W. Grimes.Ar bytes .
7714b88c807SRodney W. GrimesThe
7724b88c807SRodney W. Grimes.Ar bytes
7734b88c807SRodney W. Grimeslimit can end with
7744b88c807SRodney W. Grimes.Li m ,
7754b88c807SRodney W. Grimes.Li k ,
7764b88c807SRodney W. Grimesor
7774b88c807SRodney W. Grimes.Li b
7784b88c807SRodney W. Grimesto specify multiplication by 1048576 (1M), 1024 (1K) or 512, respectively.
7794b88c807SRodney W. GrimesA pair of
7804b88c807SRodney W. Grimes.Ar bytes
7814b88c807SRodney W. Grimeslimits can be separated by
7824b88c807SRodney W. Grimes.Li x
7834b88c807SRodney W. Grimesto indicate a product.
7844b88c807SRodney W. Grimes.Pp
7854b88c807SRodney W. Grimes.Em Warning :
7864b88c807SRodney W. GrimesOnly use this option when writing an archive to a device which supports
7874b88c807SRodney W. Grimesan end of file read condition based on last (or largest) write offset
7884b88c807SRodney W. Grimes(such as a regular file or a tape drive).
7894b88c807SRodney W. GrimesThe use of this option with a floppy or hard disk is not recommended.
7904b88c807SRodney W. Grimes.It Fl D
7914b88c807SRodney W. GrimesThis option is the same as the
7924b88c807SRodney W. Grimes.Fl u
7934b88c807SRodney W. Grimesoption, except that the file inode change time is checked instead of the
7944b88c807SRodney W. Grimesfile modification time.
7954b88c807SRodney W. GrimesThe file inode change time can be used to select files whose inode information
7964b88c807SRodney W. Grimes(e.g. uid, gid, etc.) is newer than a copy of the file in the destination
7974b88c807SRodney W. Grimes.Ar directory .
7984b88c807SRodney W. Grimes.It Fl E Ar limit
7994b88c807SRodney W. GrimesLimit the number of consecutive read faults while trying to read a flawed
8004b88c807SRodney W. Grimesarchives to
8014b88c807SRodney W. Grimes.Ar limit .
8024b88c807SRodney W. GrimesWith a positive
8034b88c807SRodney W. Grimes.Ar limit ,
804c9a8d1f4SPhilippe Charnier.Nm
8054b88c807SRodney W. Grimeswill attempt to recover from an archive read error and will
8064b88c807SRodney W. Grimescontinue processing starting with the next file stored in the archive.
8074b88c807SRodney W. GrimesA
8084b88c807SRodney W. Grimes.Ar limit
8094b88c807SRodney W. Grimesof 0 will cause
810c9a8d1f4SPhilippe Charnier.Nm
8114b88c807SRodney W. Grimesto stop operation after the first read error is detected on an archive volume.
8124b88c807SRodney W. GrimesA
8134b88c807SRodney W. Grimes.Ar limit
8144b88c807SRodney W. Grimesof
8154b88c807SRodney W. Grimes.Li NONE
8164b88c807SRodney W. Grimeswill cause
817c9a8d1f4SPhilippe Charnier.Nm
8184b88c807SRodney W. Grimesto attempt to recover from read errors forever.
8194b88c807SRodney W. GrimesThe default
8204b88c807SRodney W. Grimes.Ar limit
8214b88c807SRodney W. Grimesis a small positive number of retries.
8224b88c807SRodney W. Grimes.Pp
8234b88c807SRodney W. Grimes.Em Warning :
8244b88c807SRodney W. GrimesUsing this option with
8254b88c807SRodney W. Grimes.Li NONE
8264b88c807SRodney W. Grimesshould be used with extreme caution as
827c9a8d1f4SPhilippe Charnier.Nm
8284b88c807SRodney W. Grimesmay get stuck in an infinite loop on a very badly flawed archive.
8294b88c807SRodney W. Grimes.It Fl G Ar group
8304b88c807SRodney W. GrimesSelect a file based on its
8314b88c807SRodney W. Grimes.Ar group
8324b88c807SRodney W. Grimesname, or when starting with a
8334b88c807SRodney W. Grimes.Cm # ,
8344b88c807SRodney W. Grimesa numeric gid.
8354b88c807SRodney W. GrimesA '\\' can be used to escape the
8364b88c807SRodney W. Grimes.Cm # .
8374b88c807SRodney W. GrimesMultiple
8384b88c807SRodney W. Grimes.Fl G
8394b88c807SRodney W. Grimesoptions may be supplied and checking stops with the first match.
8404b88c807SRodney W. Grimes.It Fl H
8414b88c807SRodney W. GrimesFollow only command line symbolic links while performing a physical file
8424b88c807SRodney W. Grimessystem traversal.
8434b88c807SRodney W. Grimes.It Fl L
8444b88c807SRodney W. GrimesFollow all symbolic links to perform a logical file system traversal.
8454b88c807SRodney W. Grimes.It Fl P
8464b88c807SRodney W. GrimesDo not follow symbolic links, perform a physical file system traversal.
8474b88c807SRodney W. GrimesThis is the default mode.
8484b88c807SRodney W. Grimes.It Fl T Ar [from_date][,to_date][/[c][m]]
8494b88c807SRodney W. GrimesAllow files to be selected based on a file modification or inode change
8504b88c807SRodney W. Grimestime falling within a specified time range of
8514b88c807SRodney W. Grimes.Ar from_date
8524b88c807SRodney W. Grimesto
8534b88c807SRodney W. Grimes.Ar to_date
8544b88c807SRodney W. Grimes(the dates are inclusive).
8554b88c807SRodney W. GrimesIf only a
8564b88c807SRodney W. Grimes.Ar from_date
8574b88c807SRodney W. Grimesis supplied, all files with a modification or inode change time
8584b88c807SRodney W. Grimesequal to or younger are selected.
8594b88c807SRodney W. GrimesIf only a
8604b88c807SRodney W. Grimes.Ar to_date
8614b88c807SRodney W. Grimesis supplied, all files with a modification or inode change time
8624b88c807SRodney W. Grimesequal to or older will be selected.
8634b88c807SRodney W. GrimesWhen the
8644b88c807SRodney W. Grimes.Ar from_date
8654b88c807SRodney W. Grimesis equal to the
8664b88c807SRodney W. Grimes.Ar to_date ,
8674b88c807SRodney W. Grimesonly files with a modification or inode change time of exactly that
8684b88c807SRodney W. Grimestime will be selected.
8694b88c807SRodney W. Grimes.Pp
8704b88c807SRodney W. GrimesWhen
871c9a8d1f4SPhilippe Charnier.Nm
8724b88c807SRodney W. Grimesis in the
8734b88c807SRodney W. Grimes.Em write
8744b88c807SRodney W. Grimesor
8754b88c807SRodney W. Grimes.Em copy
8764b88c807SRodney W. Grimesmode, the optional trailing field
8774b88c807SRodney W. Grimes.Ar [c][m]
8784b88c807SRodney W. Grimescan be used to determine which file time (inode change, file modification or
8794b88c807SRodney W. Grimesboth) are used in the comparison.
8804b88c807SRodney W. GrimesIf neither is specified, the default is to use file modification time only.
8814b88c807SRodney W. GrimesThe
8824b88c807SRodney W. Grimes.Ar m
8834b88c807SRodney W. Grimesspecifies the comparison of file modification time (the time when
8844b88c807SRodney W. Grimesthe file was last written).
8854b88c807SRodney W. GrimesThe
8864b88c807SRodney W. Grimes.Ar c
8874b88c807SRodney W. Grimesspecifies the comparison of inode change time (the time when the file
8884b88c807SRodney W. Grimesinode was last changed; e.g. a change of owner, group, mode, etc).
8894b88c807SRodney W. GrimesWhen
8904b88c807SRodney W. Grimes.Ar c
8914b88c807SRodney W. Grimesand
8924b88c807SRodney W. Grimes.Ar m
8934b88c807SRodney W. Grimesare both specified, then the modification and inode change times are
8944b88c807SRodney W. Grimesboth compared.
8954b88c807SRodney W. GrimesThe inode change time comparison is useful in selecting files whose
8964b88c807SRodney W. Grimesattributes were recently changed or selecting files which were recently
8974b88c807SRodney W. Grimescreated and had their modification time reset to an older time (as what
8984b88c807SRodney W. Grimeshappens when a file is extracted from an archive and the modification time
8994b88c807SRodney W. Grimesis preserved).
9004b88c807SRodney W. GrimesTime comparisons using both file times is useful when
901c9a8d1f4SPhilippe Charnier.Nm
9024b88c807SRodney W. Grimesis used to create a time based incremental archive (only files that were
9034b88c807SRodney W. Grimeschanged during a specified time range will be archived).
9044b88c807SRodney W. Grimes.Pp
9054b88c807SRodney W. GrimesA time range is made up of six different fields and each field must contain two
9064b88c807SRodney W. Grimesdigits.
9074b88c807SRodney W. GrimesThe format is:
9084b88c807SRodney W. Grimes.Dl [yy[mm[dd[hh]]]]mm[.ss]
9094b88c807SRodney W. GrimesWhere
9104b88c807SRodney W. Grimes.Cm yy
9114b88c807SRodney W. Grimesis the last two digits of the year,
9124b88c807SRodney W. Grimesthe first
9134b88c807SRodney W. Grimes.Cm mm
9144b88c807SRodney W. Grimesis the month (from 01 to 12),
9154b88c807SRodney W. Grimes.Cm dd
9164b88c807SRodney W. Grimesis the day of the month (from 01 to 31),
9174b88c807SRodney W. Grimes.Cm hh
9184b88c807SRodney W. Grimesis the hour of the day (from 00 to 23),
9194b88c807SRodney W. Grimesthe second
9204b88c807SRodney W. Grimes.Cm mm
9214b88c807SRodney W. Grimesis the minute (from 00 to 59),
9224b88c807SRodney W. Grimesand
9234b88c807SRodney W. Grimes.Cm ss
9244b88c807SRodney W. Grimesis the seconds (from 00 to 59).
9254b88c807SRodney W. GrimesThe minute field
9264b88c807SRodney W. Grimes.Cm mm
9274b88c807SRodney W. Grimesis required, while the other fields are optional and must be added in the
9284b88c807SRodney W. Grimesfollowing order:
9294b88c807SRodney W. Grimes.Dl Cm hh , dd , mm , yy .
9304b88c807SRodney W. GrimesThe
9314b88c807SRodney W. Grimes.Cm ss
9324b88c807SRodney W. Grimesfield may be added independently of the other fields.
9334b88c807SRodney W. GrimesTime ranges are relative to the current time, so
9344b88c807SRodney W. Grimes.Dl Fl T Ar 1234/cm
9354b88c807SRodney W. Grimeswould select all files with a modification or inode change time
9364b88c807SRodney W. Grimesof 12:34 PM today or later.
9374b88c807SRodney W. GrimesMultiple
9384b88c807SRodney W. Grimes.Fl T
9394b88c807SRodney W. Grimestime range can be supplied and checking stops with the first match.
9404b88c807SRodney W. Grimes.It Fl U Ar user
9414b88c807SRodney W. GrimesSelect a file based on its
9424b88c807SRodney W. Grimes.Ar user
9434b88c807SRodney W. Grimesname, or when starting with a
9444b88c807SRodney W. Grimes.Cm # ,
9454b88c807SRodney W. Grimesa numeric uid.
9464b88c807SRodney W. GrimesA '\\' can be used to escape the
9474b88c807SRodney W. Grimes.Cm # .
9484b88c807SRodney W. GrimesMultiple
9494b88c807SRodney W. Grimes.Fl U
9504b88c807SRodney W. Grimesoptions may be supplied and checking stops with the first match.
9514b88c807SRodney W. Grimes.It Fl X
9524b88c807SRodney W. GrimesWhen traversing the file hierarchy specified by a pathname,
9534b88c807SRodney W. Grimesdo not descend into directories that have a different device ID.
9544b88c807SRodney W. GrimesSee the
9554b88c807SRodney W. Grimes.Li st_dev
9564b88c807SRodney W. Grimesfield as described in
9574b88c807SRodney W. Grimes.Xr stat 2
9584b88c807SRodney W. Grimesfor more information about device ID's.
9594b88c807SRodney W. Grimes.It Fl Y
9604b88c807SRodney W. GrimesThis option is the same as the
9614b88c807SRodney W. Grimes.Fl D
9624b88c807SRodney W. Grimesoption, except that the inode change time is checked using the
9634b88c807SRodney W. Grimespathname created after all the file name modifications have completed.
9644b88c807SRodney W. Grimes.It Fl Z
9654b88c807SRodney W. GrimesThis option is the same as the
9664b88c807SRodney W. Grimes.Fl u
9674b88c807SRodney W. Grimesoption, except that the modification time is checked using the
9684b88c807SRodney W. Grimespathname created after all the file name modifications have completed.
9694b88c807SRodney W. Grimes.El
9704b88c807SRodney W. Grimes.Pp
97194ba280cSRuslan ErmilovThe options that operate on the names of files or archive members
97294ba280cSRuslan Ermilov.Fl ( c ,
9734b88c807SRodney W. Grimes.Fl i ,
9744b88c807SRodney W. Grimes.Fl n ,
9754b88c807SRodney W. Grimes.Fl s ,
9764b88c807SRodney W. Grimes.Fl u ,
9774b88c807SRodney W. Grimes.Fl v ,
9784b88c807SRodney W. Grimes.Fl D ,
9794b88c807SRodney W. Grimes.Fl G ,
9804b88c807SRodney W. Grimes.Fl T ,
9814b88c807SRodney W. Grimes.Fl U ,
9824b88c807SRodney W. Grimes.Fl Y ,
9834b88c807SRodney W. Grimesand
9844b88c807SRodney W. Grimes.Fl Z )
9854b88c807SRodney W. Grimesinteract as follows.
9864b88c807SRodney W. Grimes.Pp
9874b88c807SRodney W. GrimesWhen extracting files during a
9884b88c807SRodney W. Grimes.Em read
9894b88c807SRodney W. Grimesoperation, archive members are
9904b88c807SRodney W. Grimes.Sq selected ,
9914b88c807SRodney W. Grimesbased only on the user specified pattern operands as modified by the
9924b88c807SRodney W. Grimes.Fl c ,
9934b88c807SRodney W. Grimes.Fl n ,
9944b88c807SRodney W. Grimes.Fl u ,
9954b88c807SRodney W. Grimes.Fl D ,
9964b88c807SRodney W. Grimes.Fl G ,
9974b88c807SRodney W. Grimes.Fl T ,
9984b88c807SRodney W. Grimes.Fl U
9994b88c807SRodney W. Grimesoptions.
10004b88c807SRodney W. GrimesThen any
10014b88c807SRodney W. Grimes.Fl s
10024b88c807SRodney W. Grimesand
10034b88c807SRodney W. Grimes.Fl i
10044b88c807SRodney W. Grimesoptions will modify in that order, the names of these selected files.
10054b88c807SRodney W. GrimesThen the
10064b88c807SRodney W. Grimes.Fl Y
10074b88c807SRodney W. Grimesand
10084b88c807SRodney W. Grimes.Fl Z
10094b88c807SRodney W. Grimesoptions will be applied based on the final pathname.
10104b88c807SRodney W. GrimesFinally the
10114b88c807SRodney W. Grimes.Fl v
10124b88c807SRodney W. Grimesoption will write the names resulting from these modifications.
10134b88c807SRodney W. Grimes.Pp
10144b88c807SRodney W. GrimesWhen archiving files during a
10154b88c807SRodney W. Grimes.Em write
10164b88c807SRodney W. Grimesoperation, or copying files during a
10174b88c807SRodney W. Grimes.Em copy
10184b88c807SRodney W. Grimesoperation, archive members are
10194b88c807SRodney W. Grimes.Sq selected ,
10204b88c807SRodney W. Grimesbased only on the user specified pathnames as modified by the
10214b88c807SRodney W. Grimes.Fl n ,
10224b88c807SRodney W. Grimes.Fl u ,
10234b88c807SRodney W. Grimes.Fl D ,
10244b88c807SRodney W. Grimes.Fl G ,
10254b88c807SRodney W. Grimes.Fl T ,
10264b88c807SRodney W. Grimesand
10274b88c807SRodney W. Grimes.Fl U
10284b88c807SRodney W. Grimesoptions (the
10294b88c807SRodney W. Grimes.Fl D
10304b88c807SRodney W. Grimesoption only applies during a copy operation).
10314b88c807SRodney W. GrimesThen any
10324b88c807SRodney W. Grimes.Fl s
10334b88c807SRodney W. Grimesand
10344b88c807SRodney W. Grimes.Fl i
10354b88c807SRodney W. Grimesoptions will modify in that order, the names of these selected files.
10364b88c807SRodney W. GrimesThen during a
10374b88c807SRodney W. Grimes.Em copy
10384b88c807SRodney W. Grimesoperation the
10394b88c807SRodney W. Grimes.Fl Y
10404b88c807SRodney W. Grimesand the
10414b88c807SRodney W. Grimes.Fl Z
10424b88c807SRodney W. Grimesoptions will be applied based on the final pathname.
10434b88c807SRodney W. GrimesFinally the
10444b88c807SRodney W. Grimes.Fl v
10454b88c807SRodney W. Grimesoption will write the names resulting from these modifications.
10464b88c807SRodney W. Grimes.Pp
10474b88c807SRodney W. GrimesWhen one or both of the
10484b88c807SRodney W. Grimes.Fl u
10494b88c807SRodney W. Grimesor
10504b88c807SRodney W. Grimes.Fl D
10514b88c807SRodney W. Grimesoptions are specified along with the
10524b88c807SRodney W. Grimes.Fl n
10534b88c807SRodney W. Grimesoption, a file is not considered selected unless it is newer
10544b88c807SRodney W. Grimesthan the file to which it is compared.
10554b88c807SRodney W. Grimes.Sh EXAMPLES
10564b88c807SRodney W. GrimesThe command:
1057d0353b83SRuslan Ermilov.Dl "pax -w -f /dev/rst0 ."
10584b88c807SRodney W. Grimescopies the contents of the current directory to the device
10594b88c807SRodney W. Grimes.Pa /dev/rst0 .
10604b88c807SRodney W. Grimes.Pp
10614b88c807SRodney W. GrimesThe command:
1062bdc95502SNate Williams.Dl pax -v -f filename
10634b88c807SRodney W. Grimesgives the verbose table of contents for an archive stored in
10644b88c807SRodney W. Grimes.Pa filename .
10654b88c807SRodney W. Grimes.Pp
10664b88c807SRodney W. GrimesThe following commands:
10679e74704eSSteve Price.Dl mkdir /tmp/foo
10689e74704eSSteve Price.Dl cd /tmp/bar
10699e74704eSSteve Price.Dl pax -rw .\ /tmp/foo
10704b88c807SRodney W. Grimeswill copy the entire
10719e74704eSSteve Price.Pa /tmp/bar
10724b88c807SRodney W. Grimesdirectory hierarchy to
10739e74704eSSteve Price.Pa /tmp/foo .
10744b88c807SRodney W. Grimes.Pp
10754b88c807SRodney W. GrimesThe command:
10764b88c807SRodney W. Grimes.Dl pax -r -s ',^//*usr//*,,' -f a.pax
10774b88c807SRodney W. Grimesreads the archive
10784b88c807SRodney W. Grimes.Pa a.pax ,
10794b88c807SRodney W. Grimeswith all files rooted in ``/usr'' into the archive extracted relative to the
10804b88c807SRodney W. Grimescurrent directory.
10814b88c807SRodney W. Grimes.Pp
10824b88c807SRodney W. GrimesThe command:
10834b88c807SRodney W. Grimes.Dl pax -rw -i .\ dest_dir
10844b88c807SRodney W. Grimescan be used to interactively select the files to copy from the current
10854b88c807SRodney W. Grimesdirectory to
10864b88c807SRodney W. Grimes.Pa dest_dir .
10874b88c807SRodney W. Grimes.Pp
10884b88c807SRodney W. GrimesThe command:
10894b88c807SRodney W. Grimes.Dl pax -r -pe -U root -G bin -f a.pax
10904b88c807SRodney W. Grimeswill extract all files from the archive
10914b88c807SRodney W. Grimes.Pa a.pax
10924b88c807SRodney W. Grimeswhich are owned by
10934b88c807SRodney W. Grimes.Em root
10944b88c807SRodney W. Grimeswith group
10954b88c807SRodney W. Grimes.Em bin
10964b88c807SRodney W. Grimesand will preserve all file permissions.
10974b88c807SRodney W. Grimes.Pp
10984b88c807SRodney W. GrimesThe command:
10994b88c807SRodney W. Grimes.Dl pax -r -w -v -Y -Z home /backup
11004b88c807SRodney W. Grimeswill update (and list) only those files in the destination directory
11014b88c807SRodney W. Grimes.Pa /backup
11024b88c807SRodney W. Grimeswhich are older (less recent inode change or file modification times) than
11034b88c807SRodney W. Grimesfiles with the same name found in the source file tree
11044b88c807SRodney W. Grimes.Pa home .
11054b88c807SRodney W. Grimes.Sh STANDARDS
11064b88c807SRodney W. GrimesThe
1107c9a8d1f4SPhilippe Charnier.Nm
11084b88c807SRodney W. Grimesutility is a superset of the
11094b88c807SRodney W. Grimes.St -p1003.2
11104b88c807SRodney W. Grimesstandard.
11114b88c807SRodney W. GrimesThe options
11121192d531SKris Kennaway.Fl z ,
11134b88c807SRodney W. Grimes.Fl B ,
11144b88c807SRodney W. Grimes.Fl D ,
11154b88c807SRodney W. Grimes.Fl E ,
11164b88c807SRodney W. Grimes.Fl G ,
11174b88c807SRodney W. Grimes.Fl H ,
11184b88c807SRodney W. Grimes.Fl L ,
11194b88c807SRodney W. Grimes.Fl P ,
11204b88c807SRodney W. Grimes.Fl T ,
11214b88c807SRodney W. Grimes.Fl U ,
11224b88c807SRodney W. Grimes.Fl Y ,
11234b88c807SRodney W. Grimes.Fl Z ,
11244b88c807SRodney W. Grimesthe archive formats
11254b88c807SRodney W. Grimes.Ar bcpio ,
11264b88c807SRodney W. Grimes.Ar sv4cpio ,
11274b88c807SRodney W. Grimes.Ar sv4crc ,
11284b88c807SRodney W. Grimes.Ar tar ,
11294b88c807SRodney W. Grimesand the flawed archive handling during
11304b88c807SRodney W. Grimes.Ar list
11314b88c807SRodney W. Grimesand
11324b88c807SRodney W. Grimes.Ar read
11334b88c807SRodney W. Grimesoperations are extensions to the
11344b88c807SRodney W. Grimes.Tn POSIX
11354b88c807SRodney W. Grimesstandard.
1136b1787decSKris Kennaway.Sh SEE ALSO
113772272f83SRuslan Ermilov.Xr cpio 1 ,
113872272f83SRuslan Ermilov.Xr tar 1
1139caa2db3bSRuslan Ermilov.Sh HISTORY
1140caa2db3bSRuslan ErmilovThe
1141caa2db3bSRuslan Ermilov.Nm
1142caa2db3bSRuslan Ermilovutility appeared in
1143caa2db3bSRuslan Ermilov.Bx 4.4 .
114405e61fd5SPhilippe Charnier.Sh AUTHORS
114505e61fd5SPhilippe Charnier.An Keith Muller
114605e61fd5SPhilippe Charnierat the University of California, San Diego
114746be34b9SKris Kennaway.Sh DIAGNOSTICS
1148c9a8d1f4SPhilippe Charnier.Nm Pax
11494b88c807SRodney W. Grimeswill exit with one of the following values:
11504b88c807SRodney W. Grimes.Bl -tag -width 2n
11514b88c807SRodney W. Grimes.It 0
11524b88c807SRodney W. GrimesAll files were processed successfully.
11534b88c807SRodney W. Grimes.It 1
11544b88c807SRodney W. GrimesAn error occurred.
11554b88c807SRodney W. Grimes.El
11564b88c807SRodney W. Grimes.Pp
11574b88c807SRodney W. GrimesWhenever
1158c9a8d1f4SPhilippe Charnier.Nm
11594b88c807SRodney W. Grimescannot create a file or a link when reading an archive or cannot
11604b88c807SRodney W. Grimesfind a file when writing an archive, or cannot preserve the user ID,
11614b88c807SRodney W. Grimesgroup ID, or file mode when the
11624b88c807SRodney W. Grimes.Fl p
11634b88c807SRodney W. Grimesoption is specified, a diagnostic message is written to
11644b88c807SRodney W. Grimes.Dv standard error
11654b88c807SRodney W. Grimesand a non-zero exit status will be returned, but processing will continue.
11664b88c807SRodney W. GrimesIn the case where pax cannot create a link to a file,
1167c9a8d1f4SPhilippe Charnier.Nm
11684b88c807SRodney W. Grimeswill not create a second copy of the file.
11694b88c807SRodney W. Grimes.Pp
11704b88c807SRodney W. GrimesIf the extraction of a file from an archive is prematurely terminated by
11714b88c807SRodney W. Grimesa signal or error,
1172c9a8d1f4SPhilippe Charnier.Nm
11734b88c807SRodney W. Grimesmay have only partially extracted a file the user wanted.
11744b88c807SRodney W. GrimesAdditionally, the file modes of extracted files and directories
11754b88c807SRodney W. Grimesmay have incorrect file bits, and the modification and access times may be
11764b88c807SRodney W. Grimeswrong.
11774b88c807SRodney W. Grimes.Pp
11784b88c807SRodney W. GrimesIf the creation of an archive is prematurely terminated by a signal or error,
1179c9a8d1f4SPhilippe Charnier.Nm
11804b88c807SRodney W. Grimesmay have only partially created the archive which may violate the specific
11814b88c807SRodney W. Grimesarchive format specification.
11824b88c807SRodney W. Grimes.Pp
11834b88c807SRodney W. GrimesIf while doing a
11844b88c807SRodney W. Grimes.Em copy ,
1185c9a8d1f4SPhilippe Charnier.Nm
11864b88c807SRodney W. Grimesdetects a file is about to overwrite itself, the file is not copied,
11874b88c807SRodney W. Grimesa diagnostic message is written to
11884b88c807SRodney W. Grimes.Dv standard error
11894b88c807SRodney W. Grimesand when
1190c9a8d1f4SPhilippe Charnier.Nm
11914b88c807SRodney W. Grimescompletes it will exit with a non-zero exit status.
1192