19ddb49cbSWarner Losh.\"- 24b88c807SRodney W. Grimes.\" Copyright (c) 1992 Keith Muller. 34b88c807SRodney W. Grimes.\" Copyright (c) 1992, 1993 44b88c807SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 54b88c807SRodney W. Grimes.\" 64b88c807SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by 74b88c807SRodney W. Grimes.\" Keith Muller of the University of California, San Diego. 84b88c807SRodney W. Grimes.\" 94b88c807SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 104b88c807SRodney W. Grimes.\" modification, are permitted provided that the following conditions 114b88c807SRodney W. Grimes.\" are met: 124b88c807SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 134b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 144b88c807SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 154b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 164b88c807SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 17fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 184b88c807SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 194b88c807SRodney W. Grimes.\" without specific prior written permission. 204b88c807SRodney W. Grimes.\" 214b88c807SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 224b88c807SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 234b88c807SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 244b88c807SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 254b88c807SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 264b88c807SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 274b88c807SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 284b88c807SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 294b88c807SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 304b88c807SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 314b88c807SRodney W. Grimes.\" SUCH DAMAGE. 324b88c807SRodney W. Grimes.\" 33*d05e43bcSDag-Erling Smørgrav.Dd October 19, 2022 344b88c807SRodney W. Grimes.Dt PAX 1 35caa2db3bSRuslan Ermilov.Os 364b88c807SRodney W. Grimes.Sh NAME 374b88c807SRodney W. Grimes.Nm pax 384b88c807SRodney W. Grimes.Nd read and write file archives and copy directory hierarchies 394b88c807SRodney W. Grimes.Sh SYNOPSIS 40be8b1497SRuslan Ermilov.Nm 41d6e1f8d7SEitan Adler.Op Fl cdnvzO 424b88c807SRodney W. Grimes.Bk -words 434b88c807SRodney W. Grimes.Op Fl f Ar archive 444b88c807SRodney W. Grimes.Ek 454b88c807SRodney W. Grimes.Bk -words 464b88c807SRodney W. Grimes.Op Fl s Ar replstr 471586940eSRuslan Ermilov.Ar ...\& 484b88c807SRodney W. Grimes.Ek 494b88c807SRodney W. Grimes.Bk -words 504b88c807SRodney W. Grimes.Op Fl U Ar user 511586940eSRuslan Ermilov.Ar ...\& 524b88c807SRodney W. Grimes.Ek 534b88c807SRodney W. Grimes.Bk -words 544b88c807SRodney W. Grimes.Op Fl G Ar group 551586940eSRuslan Ermilov.Ar ...\& 564b88c807SRodney W. Grimes.Ek 574b88c807SRodney W. Grimes.Bk -words 584b88c807SRodney W. Grimes.Oo 594b88c807SRodney W. Grimes.Fl T 604b88c807SRodney W. Grimes.Op Ar from_date 614b88c807SRodney W. Grimes.Op Ar ,to_date 624b88c807SRodney W. Grimes.Oc 631586940eSRuslan Ermilov.Ar ...\& 644b88c807SRodney W. Grimes.Ek 651586940eSRuslan Ermilov.Op Ar pattern ...\& 66be8b1497SRuslan Ermilov.Nm 674b88c807SRodney W. Grimes.Fl r 68d6e1f8d7SEitan Adler.Op Fl cdiknuvzDOYZ 694b88c807SRodney W. Grimes.Bk -words 704b88c807SRodney W. Grimes.Op Fl f Ar archive 714b88c807SRodney W. Grimes.Ek 724b88c807SRodney W. Grimes.Bk -words 734b88c807SRodney W. Grimes.Op Fl o Ar options 741586940eSRuslan Ermilov.Ar ...\& 754b88c807SRodney W. Grimes.Ek 764b88c807SRodney W. Grimes.Bk -words 774b88c807SRodney W. Grimes.Op Fl p Ar string 781586940eSRuslan Ermilov.Ar ...\& 794b88c807SRodney W. Grimes.Ek 804b88c807SRodney W. Grimes.Bk -words 814b88c807SRodney W. Grimes.Op Fl s Ar replstr 821586940eSRuslan Ermilov.Ar ...\& 834b88c807SRodney W. Grimes.Ek 844b88c807SRodney W. Grimes.Op Fl E Ar limit 854b88c807SRodney W. Grimes.Bk -words 864b88c807SRodney W. Grimes.Op Fl U Ar user 871586940eSRuslan Ermilov.Ar ...\& 884b88c807SRodney W. Grimes.Ek 894b88c807SRodney W. Grimes.Bk -words 904b88c807SRodney W. Grimes.Op Fl G Ar group 911586940eSRuslan Ermilov.Ar ...\& 924b88c807SRodney W. Grimes.Ek 934b88c807SRodney W. Grimes.Bk -words 944b88c807SRodney W. Grimes.Oo 954b88c807SRodney W. Grimes.Fl T 964b88c807SRodney W. Grimes.Op Ar from_date 974b88c807SRodney W. Grimes.Op Ar ,to_date 984b88c807SRodney W. Grimes.Oc 991586940eSRuslan Ermilov.Ar ...\& 1004b88c807SRodney W. Grimes.Ek 1011586940eSRuslan Ermilov.Op Ar pattern ...\& 102be8b1497SRuslan Ermilov.Nm 1034b88c807SRodney W. Grimes.Fl w 104d6e1f8d7SEitan Adler.Op Fl dituvzHLOPX 1054b88c807SRodney W. Grimes.Bk -words 1064b88c807SRodney W. Grimes.Op Fl b Ar blocksize 1074b88c807SRodney W. Grimes.Ek 1084b88c807SRodney W. Grimes.Oo 1094b88c807SRodney W. Grimes.Op Fl a 1104b88c807SRodney W. Grimes.Op Fl f Ar archive 1114b88c807SRodney W. Grimes.Oc 1124b88c807SRodney W. Grimes.Bk -words 1134b88c807SRodney W. Grimes.Op Fl x Ar format 1144b88c807SRodney W. Grimes.Ek 1154b88c807SRodney W. Grimes.Bk -words 1164b88c807SRodney W. Grimes.Op Fl s Ar replstr 1171586940eSRuslan Ermilov.Ar ...\& 1184b88c807SRodney W. Grimes.Ek 1194b88c807SRodney W. Grimes.Bk -words 1204b88c807SRodney W. Grimes.Op Fl o Ar options 1211586940eSRuslan Ermilov.Ar ...\& 1224b88c807SRodney W. Grimes.Ek 1234b88c807SRodney W. Grimes.Bk -words 1244b88c807SRodney W. Grimes.Op Fl U Ar user 1251586940eSRuslan Ermilov.Ar ...\& 1264b88c807SRodney W. Grimes.Ek 1274b88c807SRodney W. Grimes.Bk -words 1284b88c807SRodney W. Grimes.Op Fl G Ar group 1291586940eSRuslan Ermilov.Ar ...\& 1304b88c807SRodney W. Grimes.Ek 1314b88c807SRodney W. Grimes.Bk -words 1324b88c807SRodney W. Grimes.Op Fl B Ar bytes 1334b88c807SRodney W. Grimes.Ek 1344b88c807SRodney W. Grimes.Bk -words 1354b88c807SRodney W. Grimes.Oo 1364b88c807SRodney W. Grimes.Fl T 1374b88c807SRodney W. Grimes.Op Ar from_date 1384b88c807SRodney W. Grimes.Op Ar ,to_date 1394b88c807SRodney W. Grimes.Op Ar /[c][m] 1404b88c807SRodney W. Grimes.Oc 1411586940eSRuslan Ermilov.Ar ...\& 1424b88c807SRodney W. Grimes.Ek 14347dec781SRuslan Ermilov.Op Ar 144be8b1497SRuslan Ermilov.Nm 1454b88c807SRodney W. Grimes.Fl r 1464b88c807SRodney W. Grimes.Fl w 147d6e1f8d7SEitan Adler.Op Fl diklntuvDHLOPXYZ 1484b88c807SRodney W. Grimes.Bk -words 1494b88c807SRodney W. Grimes.Op Fl p Ar string 1501586940eSRuslan Ermilov.Ar ...\& 1514b88c807SRodney W. Grimes.Ek 1524b88c807SRodney W. Grimes.Bk -words 1534b88c807SRodney W. Grimes.Op Fl s Ar replstr 1541586940eSRuslan Ermilov.Ar ...\& 1554b88c807SRodney W. Grimes.Ek 1564b88c807SRodney W. Grimes.Bk -words 1574b88c807SRodney W. Grimes.Op Fl U Ar user 1581586940eSRuslan Ermilov.Ar ...\& 1594b88c807SRodney W. Grimes.Ek 1604b88c807SRodney W. Grimes.Bk -words 1614b88c807SRodney W. Grimes.Op Fl G Ar group 1621586940eSRuslan Ermilov.Ar ...\& 1634b88c807SRodney W. Grimes.Ek 1644b88c807SRodney W. Grimes.Bk -words 1654b88c807SRodney W. Grimes.Oo 1664b88c807SRodney W. Grimes.Fl T 1674b88c807SRodney W. Grimes.Op Ar from_date 1684b88c807SRodney W. Grimes.Op Ar ,to_date 1694b88c807SRodney W. Grimes.Op Ar /[c][m] 1704b88c807SRodney W. Grimes.Oc 1711586940eSRuslan Ermilov.Ar ...\& 1724b88c807SRodney W. Grimes.Ek 17347dec781SRuslan Ermilov.Op Ar 1744b88c807SRodney W. Grimes.Ar directory 1754b88c807SRodney W. Grimes.Sh DESCRIPTION 176f4e4fcd3SPhilippe CharnierThe 177f4e4fcd3SPhilippe Charnier.Nm 178f4e4fcd3SPhilippe Charnierutility will read, write, and list the members of an archive file, 1794b88c807SRodney W. Grimesand will copy directory hierarchies. 180f4e4fcd3SPhilippe CharnierThese operations are independent of the specific archive format, 181f4e4fcd3SPhilippe Charnierand support a wide variety of different archive formats. 1824b88c807SRodney W. GrimesA list of supported archive formats can be found under the description of the 1834b88c807SRodney W. Grimes.Fl x 1844b88c807SRodney W. Grimesoption. 1854b88c807SRodney W. Grimes.Pp 1864b88c807SRodney W. GrimesThe presence of the 1874b88c807SRodney W. Grimes.Fl r 1884b88c807SRodney W. Grimesand the 1894b88c807SRodney W. Grimes.Fl w 1904b88c807SRodney W. Grimesoptions specifies which of the following functional modes 191c9a8d1f4SPhilippe Charnier.Nm 1924b88c807SRodney W. Grimeswill operate under: 1934b88c807SRodney W. Grimes.Em list , read , write , 1944b88c807SRodney W. Grimesand 1954b88c807SRodney W. Grimes.Em copy . 1964b88c807SRodney W. Grimes.Bl -tag -width 6n 1974b88c807SRodney W. Grimes.It <none> 1984b88c807SRodney W. Grimes.Em List . 199f4e4fcd3SPhilippe CharnierWrite to 2004b88c807SRodney W. Grimes.Dv standard output 2014b88c807SRodney W. Grimesa table of contents of the members of the archive file read from 2024b88c807SRodney W. Grimes.Dv standard input , 2034b88c807SRodney W. Grimeswhose pathnames match the specified 2044b88c807SRodney W. Grimes.Ar patterns . 2054b88c807SRodney W. GrimesThe table of contents contains one filename per line 2064b88c807SRodney W. Grimesand is written using single line buffering. 2074b88c807SRodney W. Grimes.It Fl r 2084b88c807SRodney W. Grimes.Em Read . 209f4e4fcd3SPhilippe CharnierExtract the members of the archive file read from the 2104b88c807SRodney W. Grimes.Dv standard input , 2114b88c807SRodney W. Grimeswith pathnames matching the specified 2124b88c807SRodney W. Grimes.Ar patterns . 2134b88c807SRodney W. GrimesThe archive format and blocking is automatically determined on input. 2144b88c807SRodney W. GrimesWhen an extracted file is a directory, the entire file hierarchy 2154b88c807SRodney W. Grimesrooted at that directory is extracted. 2164b88c807SRodney W. GrimesAll extracted files are created relative to the current file hierarchy. 2174b88c807SRodney W. GrimesThe setting of ownership, access and modification times, and file mode of 2184b88c807SRodney W. Grimesthe extracted files are discussed in more detail under the 2194b88c807SRodney W. Grimes.Fl p 2204b88c807SRodney W. Grimesoption. 2214b88c807SRodney W. Grimes.It Fl w 2224b88c807SRodney W. Grimes.Em Write . 223f4e4fcd3SPhilippe CharnierWrite an archive containing the 2244b88c807SRodney W. Grimes.Ar file 2254b88c807SRodney W. Grimesoperands to 2264b88c807SRodney W. Grimes.Dv standard output 2274b88c807SRodney W. Grimesusing the specified archive format. 2284b88c807SRodney W. GrimesWhen no 2294b88c807SRodney W. Grimes.Ar file 2304b88c807SRodney W. Grimesoperands are specified, a list of files to copy with one per line is read from 2314b88c807SRodney W. Grimes.Dv standard input . 2324b88c807SRodney W. GrimesWhen a 2334b88c807SRodney W. Grimes.Ar file 2344b88c807SRodney W. Grimesoperand is also a directory, the entire file hierarchy rooted 2354b88c807SRodney W. Grimesat that directory will be included. 2364b88c807SRodney W. Grimes.It Fl r Fl w 2374b88c807SRodney W. Grimes.Em Copy . 238f4e4fcd3SPhilippe CharnierCopy the 2394b88c807SRodney W. Grimes.Ar file 2404b88c807SRodney W. Grimesoperands to the destination 2414b88c807SRodney W. Grimes.Ar directory . 2424b88c807SRodney W. GrimesWhen no 2434b88c807SRodney W. Grimes.Ar file 2444b88c807SRodney W. Grimesoperands are specified, a list of files to copy with one per line is read from 2454b88c807SRodney W. Grimesthe 2464b88c807SRodney W. Grimes.Dv standard input . 2474b88c807SRodney W. GrimesWhen a 2484b88c807SRodney W. Grimes.Ar file 2494b88c807SRodney W. Grimesoperand is also a directory the entire file 2504b88c807SRodney W. Grimeshierarchy rooted at that directory will be included. 2514b88c807SRodney W. GrimesThe effect of the 2524b88c807SRodney W. Grimes.Em copy 2534b88c807SRodney W. Grimesis as if the copied files were written to an archive file and then 2544b88c807SRodney W. Grimessubsequently extracted, except that there may be hard links between 2554b88c807SRodney W. Grimesthe original and the copied files (see the 2564b88c807SRodney W. Grimes.Fl l 2574b88c807SRodney W. Grimesoption below). 2584b88c807SRodney W. Grimes.Pp 2594b88c807SRodney W. Grimes.Em Warning : 2604b88c807SRodney W. GrimesThe destination 2614b88c807SRodney W. Grimes.Ar directory 2624b88c807SRodney W. Grimesmust not be one of the 2634b88c807SRodney W. Grimes.Ar file 2644b88c807SRodney W. Grimesoperands or a member of a file hierarchy rooted at one of the 2654b88c807SRodney W. Grimes.Ar file 2664b88c807SRodney W. Grimesoperands. 2674b88c807SRodney W. GrimesThe result of a 2684b88c807SRodney W. Grimes.Em copy 2694b88c807SRodney W. Grimesunder these conditions is unpredictable. 2704b88c807SRodney W. Grimes.El 2714b88c807SRodney W. Grimes.Pp 2724b88c807SRodney W. GrimesWhile processing a damaged archive during a 2734b88c807SRodney W. Grimes.Em read 2744b88c807SRodney W. Grimesor 2754b88c807SRodney W. Grimes.Em list 2764b88c807SRodney W. Grimesoperation, 277c9a8d1f4SPhilippe Charnier.Nm 2784b88c807SRodney W. Grimeswill attempt to recover from media defects and will search through the archive 2794b88c807SRodney W. Grimesto locate and process the largest number of archive members possible (see the 2804b88c807SRodney W. Grimes.Fl E 2814b88c807SRodney W. Grimesoption for more details on error handling). 2824b88c807SRodney W. Grimes.Sh OPERANDS 2834b88c807SRodney W. GrimesThe 2844b88c807SRodney W. Grimes.Ar directory 2854b88c807SRodney W. Grimesoperand specifies a destination directory pathname. 2864b88c807SRodney W. GrimesIf the 2874b88c807SRodney W. Grimes.Ar directory 2884b88c807SRodney W. Grimesoperand does not exist, or it is not writable by the user, 2894b88c807SRodney W. Grimesor it is not of type directory, 290c9a8d1f4SPhilippe Charnier.Nm 2914b88c807SRodney W. Grimeswill exit with a non-zero exit status. 2924b88c807SRodney W. Grimes.Pp 2934b88c807SRodney W. GrimesThe 2944b88c807SRodney W. Grimes.Ar pattern 2954b88c807SRodney W. Grimesoperand is used to select one or more pathnames of archive members. 2964b88c807SRodney W. GrimesArchive members are selected using the pattern matching notation described 2974b88c807SRodney W. Grimesby 2984b88c807SRodney W. Grimes.Xr fnmatch 3 . 2994b88c807SRodney W. GrimesWhen the 3004b88c807SRodney W. Grimes.Ar pattern 3014b88c807SRodney W. Grimesoperand is not supplied, all members of the archive will be selected. 3024b88c807SRodney W. GrimesWhen a 3034b88c807SRodney W. Grimes.Ar pattern 3044b88c807SRodney W. Grimesmatches a directory, the entire file hierarchy rooted at that directory will 3054b88c807SRodney W. Grimesbe selected. 3064b88c807SRodney W. GrimesWhen a 3074b88c807SRodney W. Grimes.Ar pattern 3084b88c807SRodney W. Grimesoperand does not select at least one archive member, 309c9a8d1f4SPhilippe Charnier.Nm 3104b88c807SRodney W. Grimeswill write these 3114b88c807SRodney W. Grimes.Ar pattern 3124b88c807SRodney W. Grimesoperands in a diagnostic message to 3134b88c807SRodney W. Grimes.Dv standard error 3144b88c807SRodney W. Grimesand then exit with a non-zero exit status. 3154b88c807SRodney W. Grimes.Pp 3164b88c807SRodney W. GrimesThe 3174b88c807SRodney W. Grimes.Ar file 3184b88c807SRodney W. Grimesoperand specifies the pathname of a file to be copied or archived. 3194b88c807SRodney W. GrimesWhen a 3204b88c807SRodney W. Grimes.Ar file 3214b88c807SRodney W. Grimesoperand does not select at least one archive member, 322c9a8d1f4SPhilippe Charnier.Nm 3234b88c807SRodney W. Grimeswill write these 3244b88c807SRodney W. Grimes.Ar file 3254b88c807SRodney W. Grimesoperand pathnames in a diagnostic message to 3264b88c807SRodney W. Grimes.Dv standard error 3274b88c807SRodney W. Grimesand then exit with a non-zero exit status. 3284b88c807SRodney W. Grimes.Sh OPTIONS 3294b88c807SRodney W. GrimesThe following options are supported: 3304b88c807SRodney W. Grimes.Bl -tag -width 4n 3314b88c807SRodney W. Grimes.It Fl r 3324b88c807SRodney W. GrimesRead an archive file from 3334b88c807SRodney W. Grimes.Dv standard input 3344b88c807SRodney W. Grimesand extract the specified 3354b88c807SRodney W. Grimes.Ar files . 3364b88c807SRodney W. GrimesIf any intermediate directories are needed in order to extract an archive 3374b88c807SRodney W. Grimesmember, these directories will be created as if 3384b88c807SRodney W. Grimes.Xr mkdir 2 3394b88c807SRodney W. Grimeswas called with the bitwise inclusive 3404b88c807SRodney W. Grimes.Dv OR 3414b88c807SRodney W. Grimesof 3424b88c807SRodney W. Grimes.Dv S_IRWXU , S_IRWXG , 3434b88c807SRodney W. Grimesand 3444b88c807SRodney W. Grimes.Dv S_IRWXO 3454b88c807SRodney W. Grimesas the mode argument. 3464b88c807SRodney W. GrimesWhen the selected archive format supports the specification of linked 3474b88c807SRodney W. Grimesfiles and these files cannot be linked while the archive is being extracted, 348c9a8d1f4SPhilippe Charnier.Nm 3494b88c807SRodney W. Grimeswill write a diagnostic message to 3504b88c807SRodney W. Grimes.Dv standard error 3514b88c807SRodney W. Grimesand exit with a non-zero exit status at the completion of operation. 3524b88c807SRodney W. Grimes.It Fl w 3534b88c807SRodney W. GrimesWrite files to the 3544b88c807SRodney W. Grimes.Dv standard output 3554b88c807SRodney W. Grimesin the specified archive format. 3564b88c807SRodney W. GrimesWhen no 3574b88c807SRodney W. Grimes.Ar file 3584b88c807SRodney W. Grimesoperands are specified, 3594b88c807SRodney W. Grimes.Dv standard input 3604b88c807SRodney W. Grimesis read for a list of pathnames with one per line without any leading or 3614b88c807SRodney W. Grimestrailing 3624b88c807SRodney W. Grimes.Aq blanks . 3634b88c807SRodney W. Grimes.It Fl a 3644b88c807SRodney W. GrimesAppend 3654b88c807SRodney W. Grimes.Ar files 3664b88c807SRodney W. Grimesto the end of an archive that was previously written. 3674b88c807SRodney W. GrimesIf an archive format is not specified with a 3684b88c807SRodney W. Grimes.Fl x 3694b88c807SRodney W. Grimesoption, the format currently being used in the archive will be selected. 3704b88c807SRodney W. GrimesAny attempt to append to an archive in a format different from the 3714b88c807SRodney W. Grimesformat already used in the archive will cause 372c9a8d1f4SPhilippe Charnier.Nm 3734b88c807SRodney W. Grimesto exit immediately 3744b88c807SRodney W. Grimeswith a non-zero exit status. 3754b88c807SRodney W. GrimesThe blocking size used in the archive volume where writing starts 3764b88c807SRodney W. Grimeswill continue to be used for the remainder of that archive volume. 3774b88c807SRodney W. Grimes.Pp 3784b88c807SRodney W. Grimes.Em Warning : 3794b88c807SRodney W. GrimesMany storage devices are not able to support the operations necessary 3804b88c807SRodney W. Grimesto perform an append operation. 3814b88c807SRodney W. GrimesAny attempt to append to an archive stored on such a device may damage the 3824b88c807SRodney W. Grimesarchive or have other unpredictable results. 3834b88c807SRodney W. GrimesTape drives in particular are more likely to not support an append operation. 3844b88c807SRodney W. GrimesAn archive stored in a regular file system file or on a disk device will 3854b88c807SRodney W. Grimesusually support an append operation. 3864b88c807SRodney W. Grimes.It Fl b Ar blocksize 3874b88c807SRodney W. GrimesWhen 3884b88c807SRodney W. Grimes.Em writing 3894b88c807SRodney W. Grimesan archive, 3904b88c807SRodney W. Grimesblock the output at a positive decimal integer number of 3914b88c807SRodney W. Grimesbytes per write to the archive file. 3924b88c807SRodney W. GrimesThe 3934b88c807SRodney W. Grimes.Ar blocksize 3949badf57fSRuslan Ermilovmust be a multiple of 512 bytes with a maximum of 64512 bytes. 3959badf57fSRuslan ErmilovA 3966ff45b4eSColeman Kane.Ar blocksize 3976ff45b4eSColeman Kanelarger than 32256 bytes violates the 398b1787decSKris Kennaway.Tn POSIX 399b1787decSKris Kennawaystandard and will not be portable to all systems. 4004b88c807SRodney W. GrimesA 4014b88c807SRodney W. Grimes.Ar blocksize 4024b88c807SRodney W. Grimescan end with 4034b88c807SRodney W. Grimes.Li k 4044b88c807SRodney W. Grimesor 4054b88c807SRodney W. Grimes.Li b 4064b88c807SRodney W. Grimesto specify multiplication by 1024 (1K) or 512, respectively. 4074b88c807SRodney W. GrimesA pair of 4084b88c807SRodney W. Grimes.Ar blocksizes 4094b88c807SRodney W. Grimescan be separated by 4104b88c807SRodney W. Grimes.Li x 4114b88c807SRodney W. Grimesto indicate a product. 4124b88c807SRodney W. GrimesA specific archive device may impose additional restrictions on the size 4134b88c807SRodney W. Grimesof blocking it will support. 4144b88c807SRodney W. GrimesWhen blocking is not specified, the default 4154b88c807SRodney W. Grimes.Ar blocksize 4164b88c807SRodney W. Grimesis dependent on the specific archive format being used (see the 4174b88c807SRodney W. Grimes.Fl x 4184b88c807SRodney W. Grimesoption). 4194b88c807SRodney W. Grimes.It Fl c 4204b88c807SRodney W. GrimesMatch all file or archive members 4214b88c807SRodney W. Grimes.Em except 4224b88c807SRodney W. Grimesthose specified by the 4234b88c807SRodney W. Grimes.Ar pattern 4244b88c807SRodney W. Grimesand 4254b88c807SRodney W. Grimes.Ar file 4264b88c807SRodney W. Grimesoperands. 4274b88c807SRodney W. Grimes.It Fl d 4284b88c807SRodney W. GrimesCause files of type directory being copied or archived, or archive members of 4294b88c807SRodney W. Grimestype directory being extracted, to match only the directory file or archive 4304b88c807SRodney W. Grimesmember and not the file hierarchy rooted at the directory. 4314b88c807SRodney W. Grimes.It Fl f Ar archive 4324b88c807SRodney W. GrimesSpecify 4334b88c807SRodney W. Grimes.Ar archive 4344b88c807SRodney W. Grimesas the pathname of the input or output archive, overriding the default 4354b88c807SRodney W. Grimes.Dv standard input 4364b88c807SRodney W. Grimes(for 4374b88c807SRodney W. Grimes.Em list 4384b88c807SRodney W. Grimesand 4394b88c807SRodney W. Grimes.Em read ) 4404b88c807SRodney W. Grimesor 4414b88c807SRodney W. Grimes.Dv standard output 4424b88c807SRodney W. Grimes(for 4434b88c807SRodney W. Grimes.Em write ) . 4444b88c807SRodney W. GrimesA single archive may span multiple files and different archive devices. 4454b88c807SRodney W. GrimesWhen required, 446c9a8d1f4SPhilippe Charnier.Nm 4474b88c807SRodney W. Grimeswill prompt for the pathname of the file or device of the next volume in the 4484b88c807SRodney W. Grimesarchive. 4494b88c807SRodney W. Grimes.It Fl i 4504b88c807SRodney W. GrimesInteractively rename files or archive members. 4514b88c807SRodney W. GrimesFor each archive member matching a 4524b88c807SRodney W. Grimes.Ar pattern 4534b88c807SRodney W. Grimesoperand or each file matching a 4544b88c807SRodney W. Grimes.Ar file 4554b88c807SRodney W. Grimesoperand, 456c9a8d1f4SPhilippe Charnier.Nm 4574b88c807SRodney W. Grimeswill prompt to 4584b88c807SRodney W. Grimes.Pa /dev/tty 4594b88c807SRodney W. Grimesgiving the name of the file, its file mode and its modification time. 460f4e4fcd3SPhilippe CharnierThe 461f4e4fcd3SPhilippe Charnier.Nm 462f4e4fcd3SPhilippe Charnierutility will then read a line from 4634b88c807SRodney W. Grimes.Pa /dev/tty . 4644b88c807SRodney W. GrimesIf this line is blank, the file or archive member is skipped. 4654b88c807SRodney W. GrimesIf this line consists of a single period, the 4664b88c807SRodney W. Grimesfile or archive member is processed with no modification to its name. 4674b88c807SRodney W. GrimesOtherwise, its name is replaced with the contents of the line. 468f4e4fcd3SPhilippe CharnierThe 469f4e4fcd3SPhilippe Charnier.Nm 470f4e4fcd3SPhilippe Charnierutility will immediately exit with a non-zero exit status if 4714b88c807SRodney W. Grimes.Dv <EOF> 4724b88c807SRodney W. Grimesis encountered when reading a response or if 4734b88c807SRodney W. Grimes.Pa /dev/tty 4744b88c807SRodney W. Grimescannot be opened for reading and writing. 4754b88c807SRodney W. Grimes.It Fl k 4764b88c807SRodney W. GrimesDo not overwrite existing files. 4774b88c807SRodney W. Grimes.It Fl l 4784e86fcacSSheldon HearnLink files. 4794e86fcacSSheldon Hearn(The letter ell). 4804b88c807SRodney W. GrimesIn the 4814b88c807SRodney W. Grimes.Em copy 48294ba280cSRuslan Ermilovmode 48394ba280cSRuslan Ermilov.Pq Fl r w , 4844b88c807SRodney W. Grimeshard links are made between the source and destination file hierarchies 4854b88c807SRodney W. Grimeswhenever possible. 4864b88c807SRodney W. Grimes.It Fl n 4874b88c807SRodney W. GrimesSelect the first archive member that matches each 4884b88c807SRodney W. Grimes.Ar pattern 4894b88c807SRodney W. Grimesoperand. 4904b88c807SRodney W. GrimesNo more than one archive member is matched for each 4914b88c807SRodney W. Grimes.Ar pattern . 4924b88c807SRodney W. GrimesWhen members of type directory are matched, the file hierarchy rooted at that 4934b88c807SRodney W. Grimesdirectory is also matched (unless 4944b88c807SRodney W. Grimes.Fl d 4954b88c807SRodney W. Grimesis also specified). 4964b88c807SRodney W. Grimes.It Fl o Ar options 4974b88c807SRodney W. GrimesInformation to modify the algorithm for extracting or writing archive files 4984b88c807SRodney W. Grimeswhich is specific to the archive format specified by 4994b88c807SRodney W. Grimes.Fl x . 5004b88c807SRodney W. GrimesIn general, 5014b88c807SRodney W. Grimes.Ar options 5024b88c807SRodney W. Grimestake the form: 5034b88c807SRodney W. Grimes.Cm name=value 5044b88c807SRodney W. Grimes.It Fl p Ar string 5054b88c807SRodney W. GrimesSpecify one or more file characteristic options (privileges). 5064b88c807SRodney W. GrimesThe 5074b88c807SRodney W. Grimes.Ar string 5084b88c807SRodney W. Grimesoption-argument is a string specifying file characteristics to be retained or 5094b88c807SRodney W. Grimesdiscarded on extraction. 5104b88c807SRodney W. GrimesThe string consists of the specification characters 5114b88c807SRodney W. Grimes.Cm a , e , m , o , 5124b88c807SRodney W. Grimesand 5134b88c807SRodney W. Grimes.Cm p . 5144b88c807SRodney W. GrimesMultiple characteristics can be concatenated within the same string 5154b88c807SRodney W. Grimesand multiple 5164b88c807SRodney W. Grimes.Fl p 5174b88c807SRodney W. Grimesoptions can be specified. 5184b88c807SRodney W. GrimesThe meaning of the specification characters are as follows: 5194b88c807SRodney W. Grimes.Bl -tag -width 2n 5204b88c807SRodney W. Grimes.It Cm a 5214b88c807SRodney W. GrimesDo not preserve file access times. 5224b88c807SRodney W. GrimesBy default, file access times are preserved whenever possible. 5234b88c807SRodney W. Grimes.It Cm e 5244b88c807SRodney W. Grimes.Sq Preserve everything , 5254b88c807SRodney W. Grimesthe user ID, group ID, file mode bits, 5264b88c807SRodney W. Grimesfile access time, and file modification time. 5274b88c807SRodney W. GrimesThis is intended to be used by 5284b88c807SRodney W. Grimes.Em root , 5294b88c807SRodney W. Grimessomeone with all the appropriate privileges, in order to preserve all 5304b88c807SRodney W. Grimesaspects of the files as they are recorded in the archive. 5314b88c807SRodney W. GrimesThe 5324b88c807SRodney W. Grimes.Cm e 5334b88c807SRodney W. Grimesflag is the sum of the 5344b88c807SRodney W. Grimes.Cm o 5354b88c807SRodney W. Grimesand 5364b88c807SRodney W. Grimes.Cm p 5374b88c807SRodney W. Grimesflags. 5384b88c807SRodney W. Grimes.It Cm m 5394b88c807SRodney W. GrimesDo not preserve file modification times. 5404b88c807SRodney W. GrimesBy default, file modification times are preserved whenever possible. 5414b88c807SRodney W. Grimes.It Cm o 5424b88c807SRodney W. GrimesPreserve the user ID and group ID. 5434b88c807SRodney W. Grimes.It Cm p 5444b88c807SRodney W. Grimes.Sq Preserve 5454b88c807SRodney W. Grimesthe file mode bits. 5464b88c807SRodney W. GrimesThis intended to be used by a 5474b88c807SRodney W. Grimes.Em user 5484b88c807SRodney W. Grimeswith regular privileges who wants to preserve all aspects of the file other 5494b88c807SRodney W. Grimesthan the ownership. 5504b88c807SRodney W. GrimesThe file times are preserved by default, but two other flags are offered to 5514b88c807SRodney W. Grimesdisable this and use the time of extraction instead. 5524b88c807SRodney W. Grimes.El 5534b88c807SRodney W. Grimes.Pp 5544b88c807SRodney W. GrimesIn the preceding list, 5554b88c807SRodney W. Grimes.Sq preserve 5564b88c807SRodney W. Grimesindicates that an attribute stored in the archive is given to the 5574b88c807SRodney W. Grimesextracted file, subject to the permissions of the invoking 5584b88c807SRodney W. Grimesprocess. 5594b88c807SRodney W. GrimesOtherwise the attribute of the extracted file is determined as 5604b88c807SRodney W. Grimespart of the normal file creation action. 5614b88c807SRodney W. GrimesIf neither the 5624b88c807SRodney W. Grimes.Cm e 5634b88c807SRodney W. Grimesnor the 5644b88c807SRodney W. Grimes.Cm o 5654b88c807SRodney W. Grimesspecification character is specified, or the user ID and group ID are not 5664b88c807SRodney W. Grimespreserved for any reason, 567c9a8d1f4SPhilippe Charnier.Nm 5684b88c807SRodney W. Grimeswill not set the 5694b88c807SRodney W. Grimes.Dv S_ISUID 5704b88c807SRodney W. Grimes.Em ( setuid ) 5714b88c807SRodney W. Grimesand 5724b88c807SRodney W. Grimes.Dv S_ISGID 5734b88c807SRodney W. Grimes.Em ( setgid ) 5744b88c807SRodney W. Grimesbits of the file mode. 5754b88c807SRodney W. GrimesIf the preservation of any of these items fails for any reason, 576c9a8d1f4SPhilippe Charnier.Nm 5774b88c807SRodney W. Grimeswill write a diagnostic message to 5784b88c807SRodney W. Grimes.Dv standard error . 5794b88c807SRodney W. GrimesFailure to preserve these items will affect the final exit status, 5804b88c807SRodney W. Grimesbut will not cause the extracted file to be deleted. 5814b88c807SRodney W. GrimesIf the file characteristic letters in any of the string option-arguments are 5824b88c807SRodney W. Grimesduplicated or conflict with each other, the one(s) given last will take 5834b88c807SRodney W. Grimesprecedence. 5844b88c807SRodney W. GrimesFor example, if 5854b88c807SRodney W. Grimes.Dl Fl p Ar eme 5864b88c807SRodney W. Grimesis specified, file modification times are still preserved. 587e26f6566SChris Rees.Pp 588e26f6566SChris ReesFile flags set by 589e26f6566SChris Rees.Xr chflags 1 590e26f6566SChris Reesare not understood by 591e26f6566SChris Rees.Nm , 592e26f6566SChris Reeshowever 593e26f6566SChris Rees.Xr tar 1 594e26f6566SChris Reesand 5953ea98e05SEdward Tomasz Napierala.Xr dump 8 596e26f6566SChris Reeswill preserve these. 5974b88c807SRodney W. Grimes.It Fl s Ar replstr 5984b88c807SRodney W. GrimesModify the file or archive member names specified by the 5994b88c807SRodney W. Grimes.Ar pattern 6004b88c807SRodney W. Grimesor 6014b88c807SRodney W. Grimes.Ar file 6024b88c807SRodney W. Grimesoperands according to the substitution expression 6034b88c807SRodney W. Grimes.Ar replstr , 6044b88c807SRodney W. Grimesusing the syntax of the 6054b88c807SRodney W. Grimes.Xr ed 1 6064b88c807SRodney W. Grimesutility regular expressions. 6074b88c807SRodney W. GrimesThe format of these regular expressions are: 6084b88c807SRodney W. Grimes.Dl /old/new/[gp] 6094b88c807SRodney W. GrimesAs in 6104b88c807SRodney W. Grimes.Xr ed 1 , 6114b88c807SRodney W. Grimes.Cm old 6124b88c807SRodney W. Grimesis a basic regular expression and 6134b88c807SRodney W. Grimes.Cm new 6144b88c807SRodney W. Grimescan contain an ampersand (&), \\n (where n is a digit) back-references, 6154b88c807SRodney W. Grimesor subexpression matching. 6164b88c807SRodney W. GrimesThe 6174b88c807SRodney W. Grimes.Cm old 6184b88c807SRodney W. Grimesstring may also contain 6194b88c807SRodney W. Grimes.Dv <newline> 6204b88c807SRodney W. Grimescharacters. 6214b88c807SRodney W. GrimesAny non-null character can be used as a delimiter (/ is shown here). 6224b88c807SRodney W. GrimesMultiple 6234b88c807SRodney W. Grimes.Fl s 6244b88c807SRodney W. Grimesexpressions can be specified. 6254b88c807SRodney W. GrimesThe expressions are applied in the order they are specified on the 6264b88c807SRodney W. Grimescommand line, terminating with the first successful substitution. 6274b88c807SRodney W. GrimesThe optional trailing 6284b88c807SRodney W. Grimes.Cm g 6294b88c807SRodney W. Grimescontinues to apply the substitution expression to the pathname substring 6304b88c807SRodney W. Grimeswhich starts with the first character following the end of the last successful 631bef84d6bSSheldon Hearnsubstitution. 632bef84d6bSSheldon HearnThe first unsuccessful substitution stops the operation of the 6334b88c807SRodney W. Grimes.Cm g 6344b88c807SRodney W. Grimesoption. 6354b88c807SRodney W. GrimesThe optional trailing 6364b88c807SRodney W. Grimes.Cm p 6374b88c807SRodney W. Grimeswill cause the final result of a successful substitution to be written to 6384b88c807SRodney W. Grimes.Dv standard error 6394b88c807SRodney W. Grimesin the following format: 6404b88c807SRodney W. Grimes.Dl <original pathname> >> <new pathname> 6414b88c807SRodney W. GrimesFile or archive member names that substitute to the empty string 6424b88c807SRodney W. Grimesare not selected and will be skipped. 6434b88c807SRodney W. Grimes.It Fl t 6444b88c807SRodney W. GrimesReset the access times of any file or directory read or accessed by 645c9a8d1f4SPhilippe Charnier.Nm 6464b88c807SRodney W. Grimesto be the same as they were before being read or accessed by 647be8b1497SRuslan Ermilov.Nm . 6484b88c807SRodney W. Grimes.It Fl u 6494b88c807SRodney W. GrimesIgnore files that are older (having a less recent file modification time) 6504b88c807SRodney W. Grimesthan a pre-existing file or archive member with the same name. 6514b88c807SRodney W. GrimesDuring 6524b88c807SRodney W. Grimes.Em read , 6534b88c807SRodney W. Grimesan archive member with the same name as a file in the file system will be 6544b88c807SRodney W. Grimesextracted if the archive member is newer than the file. 6554b88c807SRodney W. GrimesDuring 6564b88c807SRodney W. Grimes.Em write , 6574b88c807SRodney W. Grimesa file system member with the same name as an archive member will be 6584b88c807SRodney W. Grimeswritten to the archive if it is newer than the archive member. 6594b88c807SRodney W. GrimesDuring 6604b88c807SRodney W. Grimes.Em copy , 6614b88c807SRodney W. Grimesthe file in the destination hierarchy is replaced by the file in the source 6624b88c807SRodney W. Grimeshierarchy or by a link to the file in the source hierarchy if the file in 6634b88c807SRodney W. Grimesthe source hierarchy is newer. 6644b88c807SRodney W. Grimes.It Fl v 6654b88c807SRodney W. GrimesDuring a 6664b88c807SRodney W. Grimes.Em list 6674b88c807SRodney W. Grimesoperation, produce a verbose table of contents using the format of the 6684b88c807SRodney W. Grimes.Xr ls 1 6694b88c807SRodney W. Grimesutility with the 6704b88c807SRodney W. Grimes.Fl l 6714b88c807SRodney W. Grimesoption. 6724b88c807SRodney W. GrimesFor pathnames representing a hard link to a previous member of the archive, 6734b88c807SRodney W. Grimesthe output has the format: 6744b88c807SRodney W. Grimes.Dl <ls -l listing> == <link name> 6754b88c807SRodney W. GrimesFor pathnames representing a symbolic link, the output has the format: 6764b88c807SRodney W. Grimes.Dl <ls -l listing> => <link name> 6774b88c807SRodney W. GrimesWhere <ls -l listing> is the output format specified by the 6784b88c807SRodney W. Grimes.Xr ls 1 6794b88c807SRodney W. Grimesutility when used with the 6804b88c807SRodney W. Grimes.Fl l 6814b88c807SRodney W. Grimesoption. 68294ba280cSRuslan ErmilovOtherwise for all the other operational modes 68394ba280cSRuslan Ermilov.Em ( read , write , 6844b88c807SRodney W. Grimesand 6854b88c807SRodney W. Grimes.Em copy ) , 6864b88c807SRodney W. Grimespathnames are written and flushed to 6874b88c807SRodney W. Grimes.Dv standard error 6884b88c807SRodney W. Grimeswithout a trailing 6894b88c807SRodney W. Grimes.Dv <newline> 6904b88c807SRodney W. Grimesas soon as processing begins on that file or 6914b88c807SRodney W. Grimesarchive member. 6924b88c807SRodney W. GrimesThe trailing 6934b88c807SRodney W. Grimes.Dv <newline> , 6944b88c807SRodney W. Grimesis not buffered, and is written only after the file has been read or written. 6954b88c807SRodney W. Grimes.It Fl x Ar format 6964b88c807SRodney W. GrimesSpecify the output archive format, with the default format being 6974b88c807SRodney W. Grimes.Ar ustar . 698f4e4fcd3SPhilippe CharnierThe 699f4e4fcd3SPhilippe Charnier.Nm 700f4e4fcd3SPhilippe Charnierutility currently supports the following formats: 7014b88c807SRodney W. Grimes.Bl -tag -width "sv4cpio" 7024b88c807SRodney W. Grimes.It Ar cpio 7034b88c807SRodney W. GrimesThe extended cpio interchange format specified in the 7044b88c807SRodney W. Grimes.St -p1003.2 7054b88c807SRodney W. Grimesstandard. 7064b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes. 7074b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links 7084b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by 709c9a8d1f4SPhilippe Charnier.Nm 7104b88c807SRodney W. Grimesand is repaired. 7114b88c807SRodney W. Grimes.It Ar bcpio 7124b88c807SRodney W. GrimesThe old binary cpio format. 7134b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes. 7144b88c807SRodney W. GrimesThis format is not very portable and should not be used when other formats 7154b88c807SRodney W. Grimesare available. 7164b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links 7174b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by 718c9a8d1f4SPhilippe Charnier.Nm 7194b88c807SRodney W. Grimesand is repaired. 7204b88c807SRodney W. Grimes.It Ar sv4cpio 7214b88c807SRodney W. GrimesThe System V release 4 cpio. 7224b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes. 7234b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links 7244b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by 725c9a8d1f4SPhilippe Charnier.Nm 7264b88c807SRodney W. Grimesand is repaired. 7274b88c807SRodney W. Grimes.It Ar sv4crc 7284b88c807SRodney W. GrimesThe System V release 4 cpio with file crc checksums. 7294b88c807SRodney W. GrimesThe default blocksize for this format is 5120 bytes. 7304b88c807SRodney W. GrimesInode and device information about a file (used for detecting file hard links 7314b88c807SRodney W. Grimesby this format) which may be truncated by this format is detected by 732c9a8d1f4SPhilippe Charnier.Nm 7334b88c807SRodney W. Grimesand is repaired. 7344b88c807SRodney W. Grimes.It Ar tar 735753d686dSRuslan ErmilovThe old 736753d686dSRuslan Ermilov.Bx 737753d686dSRuslan Ermilovtar format as found in 738753d686dSRuslan Ermilov.Bx 4.3 . 7394b88c807SRodney W. GrimesThe default blocksize for this format is 10240 bytes. 7404b88c807SRodney W. GrimesPathnames stored by this format must be 100 characters or less in length. 7414b88c807SRodney W. GrimesOnly 7424b88c807SRodney W. Grimes.Em regular 7434b88c807SRodney W. Grimesfiles, 7444b88c807SRodney W. Grimes.Em hard links , soft links , 7454b88c807SRodney W. Grimesand 7464b88c807SRodney W. Grimes.Em directories 7474b88c807SRodney W. Grimeswill be archived (other file system types are not supported). 7484b88c807SRodney W. GrimesFor backwards compatibility with even older tar formats, a 7494b88c807SRodney W. Grimes.Fl o 7504b88c807SRodney W. Grimesoption can be used when writing an archive to omit the storage of directories. 7514b88c807SRodney W. GrimesThis option takes the form: 7524b88c807SRodney W. Grimes.Dl Fl o Cm write_opt=nodir 7534b88c807SRodney W. Grimes.It Ar ustar 7544b88c807SRodney W. GrimesThe extended tar interchange format specified in the 7554b88c807SRodney W. Grimes.St -p1003.2 7564b88c807SRodney W. Grimesstandard. 7574b88c807SRodney W. GrimesThe default blocksize for this format is 10240 bytes. 758cd14b457SBrian SomersPathnames stored by this format must be 255 characters or less in length. 759cd14b457SBrian SomersThe directory part may be at most 155 characters and each path component 760cd14b457SBrian Somersmust be less than 100 characters. 7614b88c807SRodney W. Grimes.El 7624b88c807SRodney W. Grimes.Pp 763f4e4fcd3SPhilippe CharnierThe 764f4e4fcd3SPhilippe Charnier.Nm 765f4e4fcd3SPhilippe Charnierutility will detect and report any file that it is unable to store or extract 7664b88c807SRodney W. Grimesas the result of any specific archive format restrictions. 7674b88c807SRodney W. GrimesThe individual archive formats may impose additional restrictions on use. 7684b88c807SRodney W. GrimesTypical archive format restrictions include (but are not limited to): 7694b88c807SRodney W. Grimesfile pathname length, file size, link pathname length and the type of the file. 7701192d531SKris Kennaway.It Fl z 7711192d531SKris KennawayUse 7721192d531SKris Kennaway.Xr gzip 1 7731192d531SKris Kennawayto compress (decompress) the archive while writing (reading). 7741192d531SKris KennawayIncompatible with 7751192d531SKris Kennaway.Fl a . 7764b88c807SRodney W. Grimes.It Fl B Ar bytes 7774b88c807SRodney W. GrimesLimit the number of bytes written to a single archive volume to 7784b88c807SRodney W. Grimes.Ar bytes . 7794b88c807SRodney W. GrimesThe 7804b88c807SRodney W. Grimes.Ar bytes 7814b88c807SRodney W. Grimeslimit can end with 7824b88c807SRodney W. Grimes.Li m , 7834b88c807SRodney W. Grimes.Li k , 7844b88c807SRodney W. Grimesor 7854b88c807SRodney W. Grimes.Li b 7864b88c807SRodney W. Grimesto specify multiplication by 1048576 (1M), 1024 (1K) or 512, respectively. 7874b88c807SRodney W. GrimesA pair of 7884b88c807SRodney W. Grimes.Ar bytes 7894b88c807SRodney W. Grimeslimits can be separated by 7904b88c807SRodney W. Grimes.Li x 7914b88c807SRodney W. Grimesto indicate a product. 7924b88c807SRodney W. Grimes.Pp 79364e8790dSChris ReesNote that the specified size is for the uncompressed pax image itself. 79464e8790dSChris ReesIf the 79564e8790dSChris Rees.Fl z 79664e8790dSChris Reesoption is also used, the resulting file may contain fewer 79764e8790dSChris Rees.Ar bytes , 79864e8790dSChris Reesaccording to the compressibility of the archive contents. 79964e8790dSChris ReesSee 800825225e5SJens Schweikhardt.Xr zip 1 Pq Pa ports/archivers/zip 80164e8790dSChris Reesif compressed volumes of predictable size are required. 80264e8790dSChris Rees.Pp 8034b88c807SRodney W. Grimes.Em Warning : 8044b88c807SRodney W. GrimesOnly use this option when writing an archive to a device which supports 8054b88c807SRodney W. Grimesan end of file read condition based on last (or largest) write offset 8064b88c807SRodney W. Grimes(such as a regular file or a tape drive). 8074b88c807SRodney W. GrimesThe use of this option with a floppy or hard disk is not recommended. 8084b88c807SRodney W. Grimes.It Fl D 8094b88c807SRodney W. GrimesThis option is the same as the 8104b88c807SRodney W. Grimes.Fl u 8114b88c807SRodney W. Grimesoption, except that the file inode change time is checked instead of the 8124b88c807SRodney W. Grimesfile modification time. 8134b88c807SRodney W. GrimesThe file inode change time can be used to select files whose inode information 81464e8790dSChris Rees(e.g., uid, gid, etc.) is newer than a copy of the file in the destination 8154b88c807SRodney W. Grimes.Ar directory . 8164b88c807SRodney W. Grimes.It Fl E Ar limit 8174b88c807SRodney W. GrimesLimit the number of consecutive read faults while trying to read a flawed 8184b88c807SRodney W. Grimesarchives to 8194b88c807SRodney W. Grimes.Ar limit . 8204b88c807SRodney W. GrimesWith a positive 8214b88c807SRodney W. Grimes.Ar limit , 822c9a8d1f4SPhilippe Charnier.Nm 8234b88c807SRodney W. Grimeswill attempt to recover from an archive read error and will 8244b88c807SRodney W. Grimescontinue processing starting with the next file stored in the archive. 8254b88c807SRodney W. GrimesA 8264b88c807SRodney W. Grimes.Ar limit 8274b88c807SRodney W. Grimesof 0 will cause 828c9a8d1f4SPhilippe Charnier.Nm 8294b88c807SRodney W. Grimesto stop operation after the first read error is detected on an archive volume. 8304b88c807SRodney W. GrimesA 8314b88c807SRodney W. Grimes.Ar limit 8324b88c807SRodney W. Grimesof 8334b88c807SRodney W. Grimes.Li NONE 8344b88c807SRodney W. Grimeswill cause 835c9a8d1f4SPhilippe Charnier.Nm 8364b88c807SRodney W. Grimesto attempt to recover from read errors forever. 8374b88c807SRodney W. GrimesThe default 8384b88c807SRodney W. Grimes.Ar limit 8394b88c807SRodney W. Grimesis a small positive number of retries. 8404b88c807SRodney W. Grimes.Pp 8414b88c807SRodney W. Grimes.Em Warning : 8424b88c807SRodney W. GrimesUsing this option with 8434b88c807SRodney W. Grimes.Li NONE 8444b88c807SRodney W. Grimesshould be used with extreme caution as 845c9a8d1f4SPhilippe Charnier.Nm 8464b88c807SRodney W. Grimesmay get stuck in an infinite loop on a very badly flawed archive. 8474b88c807SRodney W. Grimes.It Fl G Ar group 8484b88c807SRodney W. GrimesSelect a file based on its 8494b88c807SRodney W. Grimes.Ar group 8504b88c807SRodney W. Grimesname, or when starting with a 8514b88c807SRodney W. Grimes.Cm # , 8524b88c807SRodney W. Grimesa numeric gid. 8534b88c807SRodney W. GrimesA '\\' can be used to escape the 8544b88c807SRodney W. Grimes.Cm # . 8554b88c807SRodney W. GrimesMultiple 8564b88c807SRodney W. Grimes.Fl G 8574b88c807SRodney W. Grimesoptions may be supplied and checking stops with the first match. 8584b88c807SRodney W. Grimes.It Fl H 8594b88c807SRodney W. GrimesFollow only command line symbolic links while performing a physical file 8604b88c807SRodney W. Grimessystem traversal. 8614b88c807SRodney W. Grimes.It Fl L 8624b88c807SRodney W. GrimesFollow all symbolic links to perform a logical file system traversal. 863d6e1f8d7SEitan Adler.It Fl O 864d6e1f8d7SEitan AdlerForce the archive to be one volume. 865d6e1f8d7SEitan AdlerIf a volume ends prematurely, 866d6e1f8d7SEitan Adler.Nm 867d6e1f8d7SEitan Adlerwill not prompt for a new volume. 868d6e1f8d7SEitan AdlerThis option can be useful for 869d6e1f8d7SEitan Adlerautomated tasks where error recovery cannot be performed by a human. 8704b88c807SRodney W. Grimes.It Fl P 8714b88c807SRodney W. GrimesDo not follow symbolic links, perform a physical file system traversal. 8724b88c807SRodney W. GrimesThis is the default mode. 8734b88c807SRodney W. Grimes.It Fl T Ar [from_date][,to_date][/[c][m]] 8744b88c807SRodney W. GrimesAllow files to be selected based on a file modification or inode change 8754b88c807SRodney W. Grimestime falling within a specified time range of 8764b88c807SRodney W. Grimes.Ar from_date 8774b88c807SRodney W. Grimesto 8784b88c807SRodney W. Grimes.Ar to_date 8794b88c807SRodney W. Grimes(the dates are inclusive). 8804b88c807SRodney W. GrimesIf only a 8814b88c807SRodney W. Grimes.Ar from_date 8824b88c807SRodney W. Grimesis supplied, all files with a modification or inode change time 8834b88c807SRodney W. Grimesequal to or younger are selected. 8844b88c807SRodney W. GrimesIf only a 8854b88c807SRodney W. Grimes.Ar to_date 8864b88c807SRodney W. Grimesis supplied, all files with a modification or inode change time 8874b88c807SRodney W. Grimesequal to or older will be selected. 8884b88c807SRodney W. GrimesWhen the 8894b88c807SRodney W. Grimes.Ar from_date 8904b88c807SRodney W. Grimesis equal to the 8914b88c807SRodney W. Grimes.Ar to_date , 8924b88c807SRodney W. Grimesonly files with a modification or inode change time of exactly that 8934b88c807SRodney W. Grimestime will be selected. 8944b88c807SRodney W. Grimes.Pp 8954b88c807SRodney W. GrimesWhen 896c9a8d1f4SPhilippe Charnier.Nm 8974b88c807SRodney W. Grimesis in the 8984b88c807SRodney W. Grimes.Em write 8994b88c807SRodney W. Grimesor 9004b88c807SRodney W. Grimes.Em copy 9014b88c807SRodney W. Grimesmode, the optional trailing field 9024b88c807SRodney W. Grimes.Ar [c][m] 9034b88c807SRodney W. Grimescan be used to determine which file time (inode change, file modification or 9044b88c807SRodney W. Grimesboth) are used in the comparison. 9054b88c807SRodney W. GrimesIf neither is specified, the default is to use file modification time only. 9064b88c807SRodney W. GrimesThe 9074b88c807SRodney W. Grimes.Ar m 9084b88c807SRodney W. Grimesspecifies the comparison of file modification time (the time when 9094b88c807SRodney W. Grimesthe file was last written). 9104b88c807SRodney W. GrimesThe 9114b88c807SRodney W. Grimes.Ar c 9124b88c807SRodney W. Grimesspecifies the comparison of inode change time (the time when the file 91364e8790dSChris Reesinode was last changed; e.g., a change of owner, group, mode, etc). 9144b88c807SRodney W. GrimesWhen 9154b88c807SRodney W. Grimes.Ar c 9164b88c807SRodney W. Grimesand 9174b88c807SRodney W. Grimes.Ar m 9184b88c807SRodney W. Grimesare both specified, then the modification and inode change times are 9194b88c807SRodney W. Grimesboth compared. 9204b88c807SRodney W. GrimesThe inode change time comparison is useful in selecting files whose 9214b88c807SRodney W. Grimesattributes were recently changed or selecting files which were recently 9224b88c807SRodney W. Grimescreated and had their modification time reset to an older time (as what 9234b88c807SRodney W. Grimeshappens when a file is extracted from an archive and the modification time 9244b88c807SRodney W. Grimesis preserved). 9254b88c807SRodney W. GrimesTime comparisons using both file times is useful when 926c9a8d1f4SPhilippe Charnier.Nm 9274b88c807SRodney W. Grimesis used to create a time based incremental archive (only files that were 9284b88c807SRodney W. Grimeschanged during a specified time range will be archived). 9294b88c807SRodney W. Grimes.Pp 9304b88c807SRodney W. GrimesA time range is made up of six different fields and each field must contain two 9314b88c807SRodney W. Grimesdigits. 9324b88c807SRodney W. GrimesThe format is: 933*d05e43bcSDag-Erling Smørgrav.Pp 934*d05e43bcSDag-Erling Smørgrav.Dl [[[[[cc]yy]mm]dd]HH]MM[.SS] 935*d05e43bcSDag-Erling Smørgrav.Pp 9364b88c807SRodney W. GrimesWhere 937*d05e43bcSDag-Erling Smørgrav.Ar cc 938*d05e43bcSDag-Erling Smørgravis the first two digits of the year (the century), 939*d05e43bcSDag-Erling Smørgrav.Ar yy 9404b88c807SRodney W. Grimesis the last two digits of the year, 9414b88c807SRodney W. Grimesthe first 942*d05e43bcSDag-Erling Smørgrav.Ar mm 9434b88c807SRodney W. Grimesis the month (from 01 to 12), 944*d05e43bcSDag-Erling Smørgrav.Ar dd 9454b88c807SRodney W. Grimesis the day of the month (from 01 to 31), 946*d05e43bcSDag-Erling Smørgrav.Ar HH 9474b88c807SRodney W. Grimesis the hour of the day (from 00 to 23), 948*d05e43bcSDag-Erling Smørgrav.Ar MM 9494b88c807SRodney W. Grimesis the minute (from 00 to 59), 9504b88c807SRodney W. Grimesand 951*d05e43bcSDag-Erling Smørgrav.Ar SS 9524b88c807SRodney W. Grimesis the seconds (from 00 to 59). 9534b88c807SRodney W. GrimesThe minute field 954*d05e43bcSDag-Erling Smørgrav.Ar MM 9554b88c807SRodney W. Grimesis required, while the other fields are optional and must be added in the 9564b88c807SRodney W. Grimesfollowing order: 957*d05e43bcSDag-Erling Smørgrav.Ar HH , dd , mm , yy , cc . 9584b88c807SRodney W. GrimesThe 9594b88c807SRodney W. Grimes.Cm ss 9604b88c807SRodney W. Grimesfield may be added independently of the other fields. 9614b88c807SRodney W. GrimesTime ranges are relative to the current time, so 9624b88c807SRodney W. Grimes.Dl Fl T Ar 1234/cm 9634b88c807SRodney W. Grimeswould select all files with a modification or inode change time 9644b88c807SRodney W. Grimesof 12:34 PM today or later. 9654b88c807SRodney W. GrimesMultiple 9664b88c807SRodney W. Grimes.Fl T 9674b88c807SRodney W. Grimestime range can be supplied and checking stops with the first match. 9684b88c807SRodney W. Grimes.It Fl U Ar user 9694b88c807SRodney W. GrimesSelect a file based on its 9704b88c807SRodney W. Grimes.Ar user 9714b88c807SRodney W. Grimesname, or when starting with a 9724b88c807SRodney W. Grimes.Cm # , 9734b88c807SRodney W. Grimesa numeric uid. 9744b88c807SRodney W. GrimesA '\\' can be used to escape the 9754b88c807SRodney W. Grimes.Cm # . 9764b88c807SRodney W. GrimesMultiple 9774b88c807SRodney W. Grimes.Fl U 9784b88c807SRodney W. Grimesoptions may be supplied and checking stops with the first match. 9794b88c807SRodney W. Grimes.It Fl X 9804b88c807SRodney W. GrimesWhen traversing the file hierarchy specified by a pathname, 9814b88c807SRodney W. Grimesdo not descend into directories that have a different device ID. 9824b88c807SRodney W. GrimesSee the 9834b88c807SRodney W. Grimes.Li st_dev 9844b88c807SRodney W. Grimesfield as described in 9854b88c807SRodney W. Grimes.Xr stat 2 9864b88c807SRodney W. Grimesfor more information about device ID's. 9874b88c807SRodney W. Grimes.It Fl Y 9884b88c807SRodney W. GrimesThis option is the same as the 9894b88c807SRodney W. Grimes.Fl D 9904b88c807SRodney W. Grimesoption, except that the inode change time is checked using the 9914b88c807SRodney W. Grimespathname created after all the file name modifications have completed. 9924b88c807SRodney W. Grimes.It Fl Z 9934b88c807SRodney W. GrimesThis option is the same as the 9944b88c807SRodney W. Grimes.Fl u 9954b88c807SRodney W. Grimesoption, except that the modification time is checked using the 9964b88c807SRodney W. Grimespathname created after all the file name modifications have completed. 9974b88c807SRodney W. Grimes.El 9984b88c807SRodney W. Grimes.Pp 99994ba280cSRuslan ErmilovThe options that operate on the names of files or archive members 100094ba280cSRuslan Ermilov.Fl ( c , 10014b88c807SRodney W. Grimes.Fl i , 10024b88c807SRodney W. Grimes.Fl n , 10034b88c807SRodney W. Grimes.Fl s , 10044b88c807SRodney W. Grimes.Fl u , 10054b88c807SRodney W. Grimes.Fl v , 10064b88c807SRodney W. Grimes.Fl D , 10074b88c807SRodney W. Grimes.Fl G , 10084b88c807SRodney W. Grimes.Fl T , 10094b88c807SRodney W. Grimes.Fl U , 10104b88c807SRodney W. Grimes.Fl Y , 10114b88c807SRodney W. Grimesand 10124b88c807SRodney W. Grimes.Fl Z ) 10134b88c807SRodney W. Grimesinteract as follows. 10144b88c807SRodney W. Grimes.Pp 10154b88c807SRodney W. GrimesWhen extracting files during a 10164b88c807SRodney W. Grimes.Em read 10174b88c807SRodney W. Grimesoperation, archive members are 10184b88c807SRodney W. Grimes.Sq selected , 10194b88c807SRodney W. Grimesbased only on the user specified pattern operands as modified by the 10204b88c807SRodney W. Grimes.Fl c , 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. Grimes.Fl U 10274b88c807SRodney W. Grimesoptions. 10284b88c807SRodney W. GrimesThen any 10294b88c807SRodney W. Grimes.Fl s 10304b88c807SRodney W. Grimesand 10314b88c807SRodney W. Grimes.Fl i 10324b88c807SRodney W. Grimesoptions will modify in that order, the names of these selected files. 10334b88c807SRodney W. GrimesThen the 10344b88c807SRodney W. Grimes.Fl Y 10354b88c807SRodney W. Grimesand 10364b88c807SRodney W. Grimes.Fl Z 10374b88c807SRodney W. Grimesoptions will be applied based on the final pathname. 10384b88c807SRodney W. GrimesFinally the 10394b88c807SRodney W. Grimes.Fl v 10404b88c807SRodney W. Grimesoption will write the names resulting from these modifications. 10414b88c807SRodney W. Grimes.Pp 10424b88c807SRodney W. GrimesWhen archiving files during a 10434b88c807SRodney W. Grimes.Em write 10444b88c807SRodney W. Grimesoperation, or copying files during a 10454b88c807SRodney W. Grimes.Em copy 10464b88c807SRodney W. Grimesoperation, archive members are 10474b88c807SRodney W. Grimes.Sq selected , 10484b88c807SRodney W. Grimesbased only on the user specified pathnames as modified by the 10494b88c807SRodney W. Grimes.Fl n , 10504b88c807SRodney W. Grimes.Fl u , 10514b88c807SRodney W. Grimes.Fl D , 10524b88c807SRodney W. Grimes.Fl G , 10534b88c807SRodney W. Grimes.Fl T , 10544b88c807SRodney W. Grimesand 10554b88c807SRodney W. Grimes.Fl U 10564b88c807SRodney W. Grimesoptions (the 10574b88c807SRodney W. Grimes.Fl D 10584b88c807SRodney W. Grimesoption only applies during a copy operation). 10594b88c807SRodney W. GrimesThen any 10604b88c807SRodney W. Grimes.Fl s 10614b88c807SRodney W. Grimesand 10624b88c807SRodney W. Grimes.Fl i 10634b88c807SRodney W. Grimesoptions will modify in that order, the names of these selected files. 10644b88c807SRodney W. GrimesThen during a 10654b88c807SRodney W. Grimes.Em copy 10664b88c807SRodney W. Grimesoperation the 10674b88c807SRodney W. Grimes.Fl Y 10684b88c807SRodney W. Grimesand the 10694b88c807SRodney W. Grimes.Fl Z 10704b88c807SRodney W. Grimesoptions will be applied based on the final pathname. 10714b88c807SRodney W. GrimesFinally the 10724b88c807SRodney W. Grimes.Fl v 10734b88c807SRodney W. Grimesoption will write the names resulting from these modifications. 10744b88c807SRodney W. Grimes.Pp 10754b88c807SRodney W. GrimesWhen one or both of the 10764b88c807SRodney W. Grimes.Fl u 10774b88c807SRodney W. Grimesor 10784b88c807SRodney W. Grimes.Fl D 10794b88c807SRodney W. Grimesoptions are specified along with the 10804b88c807SRodney W. Grimes.Fl n 10814b88c807SRodney W. Grimesoption, a file is not considered selected unless it is newer 10824b88c807SRodney W. Grimesthan the file to which it is compared. 10836fca4c7cSRuslan Ermilov.Sh EXIT STATUS 10846fca4c7cSRuslan ErmilovThe 10856fca4c7cSRuslan Ermilov.Nm 10866fca4c7cSRuslan Ermilovutility will exit with one of the following values: 10876fca4c7cSRuslan Ermilov.Bl -tag -width 2n 10886fca4c7cSRuslan Ermilov.It 0 10896fca4c7cSRuslan ErmilovAll files were processed successfully. 10906fca4c7cSRuslan Ermilov.It 1 10916fca4c7cSRuslan ErmilovAn error occurred. 10926fca4c7cSRuslan Ermilov.El 10934b88c807SRodney W. Grimes.Sh EXAMPLES 10944b88c807SRodney W. GrimesThe command: 1095e7ed0f64STim J. Robbins.Dl "pax -w -f /dev/sa0 ." 10964b88c807SRodney W. Grimescopies the contents of the current directory to the device 1097e7ed0f64STim J. Robbins.Pa /dev/sa0 . 10984b88c807SRodney W. Grimes.Pp 10994b88c807SRodney W. GrimesThe command: 1100bdc95502SNate Williams.Dl pax -v -f filename 11014b88c807SRodney W. Grimesgives the verbose table of contents for an archive stored in 11024b88c807SRodney W. Grimes.Pa filename . 11034b88c807SRodney W. Grimes.Pp 11044b88c807SRodney W. GrimesThe following commands: 11052e79837fSDavid E. O'Brien.Dl mkdir /tmp/to 11062e79837fSDavid E. O'Brien.Dl cd /tmp/from 11072e79837fSDavid E. O'Brien.Dl pax -rw .\ /tmp/to 11084b88c807SRodney W. Grimeswill copy the entire 11092e79837fSDavid E. O'Brien.Pa /tmp/from 11104b88c807SRodney W. Grimesdirectory hierarchy to 11112e79837fSDavid E. O'Brien.Pa /tmp/to . 11124b88c807SRodney W. Grimes.Pp 11134b88c807SRodney W. GrimesThe command: 11144b88c807SRodney W. Grimes.Dl pax -r -s ',^//*usr//*,,' -f a.pax 11154b88c807SRodney W. Grimesreads the archive 11164b88c807SRodney W. Grimes.Pa a.pax , 11174b88c807SRodney W. Grimeswith all files rooted in ``/usr'' into the archive extracted relative to the 11184b88c807SRodney W. Grimescurrent directory. 11194b88c807SRodney W. Grimes.Pp 11204b88c807SRodney W. GrimesThe command: 11214b88c807SRodney W. Grimes.Dl pax -rw -i .\ dest_dir 11224b88c807SRodney W. Grimescan be used to interactively select the files to copy from the current 11234b88c807SRodney W. Grimesdirectory to 11244b88c807SRodney W. Grimes.Pa dest_dir . 11254b88c807SRodney W. Grimes.Pp 11264b88c807SRodney W. GrimesThe command: 11274b88c807SRodney W. Grimes.Dl pax -r -pe -U root -G bin -f a.pax 11284b88c807SRodney W. Grimeswill extract all files from the archive 11294b88c807SRodney W. Grimes.Pa a.pax 11304b88c807SRodney W. Grimeswhich are owned by 11314b88c807SRodney W. Grimes.Em root 11324b88c807SRodney W. Grimeswith group 11334b88c807SRodney W. Grimes.Em bin 11344b88c807SRodney W. Grimesand will preserve all file permissions. 11354b88c807SRodney W. Grimes.Pp 11364b88c807SRodney W. GrimesThe command: 11374b88c807SRodney W. Grimes.Dl pax -r -w -v -Y -Z home /backup 11384b88c807SRodney W. Grimeswill update (and list) only those files in the destination directory 11394b88c807SRodney W. Grimes.Pa /backup 11404b88c807SRodney W. Grimeswhich are older (less recent inode change or file modification times) than 11414b88c807SRodney W. Grimesfiles with the same name found in the source file tree 11424b88c807SRodney W. Grimes.Pa home . 114346be34b9SKris Kennaway.Sh DIAGNOSTICS 11444b88c807SRodney W. GrimesWhenever 1145c9a8d1f4SPhilippe Charnier.Nm 11464b88c807SRodney W. Grimescannot create a file or a link when reading an archive or cannot 11474b88c807SRodney W. Grimesfind a file when writing an archive, or cannot preserve the user ID, 11484b88c807SRodney W. Grimesgroup ID, or file mode when the 11494b88c807SRodney W. Grimes.Fl p 11504b88c807SRodney W. Grimesoption is specified, a diagnostic message is written to 11514b88c807SRodney W. Grimes.Dv standard error 11524b88c807SRodney W. Grimesand a non-zero exit status will be returned, but processing will continue. 11534b88c807SRodney W. GrimesIn the case where pax cannot create a link to a file, 1154c9a8d1f4SPhilippe Charnier.Nm 11554b88c807SRodney W. Grimeswill not create a second copy of the file. 11564b88c807SRodney W. Grimes.Pp 11574b88c807SRodney W. GrimesIf the extraction of a file from an archive is prematurely terminated by 11584b88c807SRodney W. Grimesa signal or error, 1159c9a8d1f4SPhilippe Charnier.Nm 11604b88c807SRodney W. Grimesmay have only partially extracted a file the user wanted. 11614b88c807SRodney W. GrimesAdditionally, the file modes of extracted files and directories 11624b88c807SRodney W. Grimesmay have incorrect file bits, and the modification and access times may be 11634b88c807SRodney W. Grimeswrong. 11644b88c807SRodney W. Grimes.Pp 11654b88c807SRodney W. GrimesIf the creation of an archive is prematurely terminated by a signal or error, 1166c9a8d1f4SPhilippe Charnier.Nm 11674b88c807SRodney W. Grimesmay have only partially created the archive which may violate the specific 11684b88c807SRodney W. Grimesarchive format specification. 11694b88c807SRodney W. Grimes.Pp 11704b88c807SRodney W. GrimesIf while doing a 11714b88c807SRodney W. Grimes.Em copy , 1172c9a8d1f4SPhilippe Charnier.Nm 11734b88c807SRodney W. Grimesdetects a file is about to overwrite itself, the file is not copied, 11744b88c807SRodney W. Grimesa diagnostic message is written to 11754b88c807SRodney W. Grimes.Dv standard error 11764b88c807SRodney W. Grimesand when 1177c9a8d1f4SPhilippe Charnier.Nm 11784b88c807SRodney W. Grimescompletes it will exit with a non-zero exit status. 11796fca4c7cSRuslan Ermilov.Sh SEE ALSO 11806fca4c7cSRuslan Ermilov.Xr cpio 1 , 11816fca4c7cSRuslan Ermilov.Xr tar 1 11826fca4c7cSRuslan Ermilov.Sh STANDARDS 11836fca4c7cSRuslan ErmilovThe 11846fca4c7cSRuslan Ermilov.Nm 11856fca4c7cSRuslan Ermilovutility is a superset of the 11866fca4c7cSRuslan Ermilov.St -p1003.2 11876fca4c7cSRuslan Ermilovstandard. 11886fca4c7cSRuslan ErmilovThe options 11896fca4c7cSRuslan Ermilov.Fl z , 11906fca4c7cSRuslan Ermilov.Fl B , 11916fca4c7cSRuslan Ermilov.Fl D , 11926fca4c7cSRuslan Ermilov.Fl E , 11936fca4c7cSRuslan Ermilov.Fl G , 11946fca4c7cSRuslan Ermilov.Fl H , 11956fca4c7cSRuslan Ermilov.Fl L , 1196d6e1f8d7SEitan Adler.Fl O , 11976fca4c7cSRuslan Ermilov.Fl P , 11986fca4c7cSRuslan Ermilov.Fl T , 11996fca4c7cSRuslan Ermilov.Fl U , 12006fca4c7cSRuslan Ermilov.Fl Y , 12016fca4c7cSRuslan Ermilov.Fl Z , 12026fca4c7cSRuslan Ermilovthe archive formats 12036fca4c7cSRuslan Ermilov.Ar bcpio , 12046fca4c7cSRuslan Ermilov.Ar sv4cpio , 12056fca4c7cSRuslan Ermilov.Ar sv4crc , 12066fca4c7cSRuslan Ermilov.Ar tar , 12076fca4c7cSRuslan Ermilovand the flawed archive handling during 12086fca4c7cSRuslan Ermilov.Ar list 12096fca4c7cSRuslan Ermilovand 12106fca4c7cSRuslan Ermilov.Ar read 12116fca4c7cSRuslan Ermilovoperations are extensions to the 12126fca4c7cSRuslan Ermilov.Tn POSIX 12136fca4c7cSRuslan Ermilovstandard. 12146fca4c7cSRuslan Ermilov.Sh HISTORY 12156fca4c7cSRuslan ErmilovThe 12166fca4c7cSRuslan Ermilov.Nm 12176fca4c7cSRuslan Ermilovutility appeared in 12186fca4c7cSRuslan Ermilov.Bx 4.4 . 12196fca4c7cSRuslan Ermilov.Sh AUTHORS 12206fca4c7cSRuslan Ermilov.An Keith Muller 12216fca4c7cSRuslan Ermilovat the University of California, San Diego 1222128dc4a2STim J. Robbins.Sh BUGS 1223128dc4a2STim J. RobbinsThe 1224128dc4a2STim J. Robbins.Nm 1225128dc4a2STim J. Robbinsutility does not recognize multibyte characters. 1226e26f6566SChris Rees.Pp 1227e26f6566SChris ReesFile flags set by 1228e26f6566SChris Rees.Xr chflags 1 1229e26f6566SChris Reesare not preserved by 1230e26f6566SChris Rees.Nm . 1231e26f6566SChris ReesThe BUGS section of 1232e26f6566SChris Rees.Xr chflags 1 1233e26f6566SChris Reeshas a list of utilities that are unaware of flags. 1234