| 1 | .\" $MirOS: src/bin/pax/pax.1,v 1.22 2012/02/12 02:49:41 tg Exp $
|
|---|
| 2 | .\" $OpenBSD: pax.1,v 1.61 2010/09/19 20:55:25 jmc Exp $
|
|---|
| 3 | .\" $NetBSD: pax.1,v 1.3 1995/03/21 09:07:37 cgd Exp $
|
|---|
| 4 | .\"
|
|---|
| 5 | .\" Copyright (c) 2005, 2009, 2011, 2012
|
|---|
| 6 | .\" Thorsten Glaser <tg@mirbsd.org>
|
|---|
| 7 | .\" Copyright (c) 1992 Keith Muller.
|
|---|
| 8 | .\" Copyright (c) 1992, 1993
|
|---|
| 9 | .\" The Regents of the University of California. All rights reserved.
|
|---|
| 10 | .\"
|
|---|
| 11 | .\" This code is derived from software contributed to Berkeley by
|
|---|
| 12 | .\" Keith Muller of the University of California, San Diego.
|
|---|
| 13 | .\"
|
|---|
| 14 | .\" Redistribution and use in source and binary forms, with or without
|
|---|
| 15 | .\" modification, are permitted provided that the following conditions
|
|---|
| 16 | .\" are met:
|
|---|
| 17 | .\" 1. Redistributions of source code must retain the above copyright
|
|---|
| 18 | .\" notice, this list of conditions and the following disclaimer.
|
|---|
| 19 | .\" 2. Redistributions in binary form must reproduce the above copyright
|
|---|
| 20 | .\" notice, this list of conditions and the following disclaimer in the
|
|---|
| 21 | .\" documentation and/or other materials provided with the distribution.
|
|---|
| 22 | .\" 3. Neither the name of the University nor the names of its contributors
|
|---|
| 23 | .\" may be used to endorse or promote products derived from this software
|
|---|
| 24 | .\" without specific prior written permission.
|
|---|
| 25 | .\"
|
|---|
| 26 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|---|
| 27 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|---|
| 28 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|---|
| 29 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|---|
| 30 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|---|
| 31 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|---|
| 32 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|---|
| 33 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|---|
| 34 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|---|
| 35 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|---|
| 36 | .\" SUCH DAMAGE.
|
|---|
| 37 | .\"
|
|---|
| 38 | .\" @(#)pax.1 8.4 (Berkeley) 4/18/94
|
|---|
| 39 | .\"
|
|---|
| 40 | .\"-
|
|---|
| 41 | .\" Try to make GNU groff and AT&T nroff more compatible
|
|---|
| 42 | .\" * ` generates ‘ in gnroff, so use \`
|
|---|
| 43 | .\" * ' generates ’ in gnroff, \' generates ´, so use \*(aq
|
|---|
| 44 | .\" * - generates ‐ in gnroff, \- generates −, so .tr it to -
|
|---|
| 45 | .\" thus use - for hyphens and \- for minus signs and option dashes
|
|---|
| 46 | .\" * ~ is size-reduced and placed atop in groff, so use \*(TI
|
|---|
| 47 | .\" * ^ is size-reduced and placed atop in groff, so use \*(ha
|
|---|
| 48 | .\" * \(en does not work in nroff, so use \*(en
|
|---|
| 49 | .\" The section after the "doc" macropackage has been loaded contains
|
|---|
| 50 | .\" additional code to convene between the UCB mdoc macropackage (and
|
|---|
| 51 | .\" its variant as BSD mdoc in groff) and the GNU mdoc macropackage.
|
|---|
| 52 | .\"
|
|---|
| 53 | .ie \n(.g \{\
|
|---|
| 54 | . if \*[.T]ascii .tr \-\N'45'
|
|---|
| 55 | . if \*[.T]latin1 .tr \-\N'45'
|
|---|
| 56 | . if \*[.T]utf8 .tr \-\N'45'
|
|---|
| 57 | . ds <= \[<=]
|
|---|
| 58 | . ds >= \[>=]
|
|---|
| 59 | . ds Rq \[rq]
|
|---|
| 60 | . ds Lq \[lq]
|
|---|
| 61 | . ds sL \(aq
|
|---|
| 62 | . ds sR \(aq
|
|---|
| 63 | . if \*[.T]utf8 .ds sL `
|
|---|
| 64 | . if \*[.T]ps .ds sL `
|
|---|
| 65 | . if \*[.T]utf8 .ds sR '
|
|---|
| 66 | . if \*[.T]ps .ds sR '
|
|---|
| 67 | . ds aq \(aq
|
|---|
| 68 | . ds TI \(ti
|
|---|
| 69 | . ds ha \(ha
|
|---|
| 70 | . ds en \(en
|
|---|
| 71 | .\}
|
|---|
| 72 | .el \{\
|
|---|
| 73 | . ds aq '
|
|---|
| 74 | . ds TI ~
|
|---|
| 75 | . ds ha ^
|
|---|
| 76 | . ds en \(em
|
|---|
| 77 | .\}
|
|---|
| 78 | .\"
|
|---|
| 79 | .\" Implement .Dd with the Mdocdate RCS keyword
|
|---|
| 80 | .\"
|
|---|
| 81 | .rn Dd xD
|
|---|
| 82 | .de Dd
|
|---|
| 83 | .ie \\$1$Mdocdate: \{\
|
|---|
| 84 | . xD \\$2 \\$3, \\$4
|
|---|
| 85 | .\}
|
|---|
| 86 | .el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
|---|
| 87 | ..
|
|---|
| 88 | .\"
|
|---|
| 89 | .\" .Dd must come before definition of .Mx, because when called
|
|---|
| 90 | .\" with -mandoc, it might implement .Mx itself, but we want to
|
|---|
| 91 | .\" use our own definition. And .Dd must come *first*, always.
|
|---|
| 92 | .\"
|
|---|
| 93 | .Dd $Mdocdate: February 12 2012 $
|
|---|
| 94 | .\"
|
|---|
| 95 | .\" Check which macro package we use
|
|---|
| 96 | .\"
|
|---|
| 97 | .ie \n(.g \{\
|
|---|
| 98 | . ie d volume-ds-1 .ds tT gnu
|
|---|
| 99 | . el .ds tT bsd
|
|---|
| 100 | .\}
|
|---|
| 101 | .el .ds tT ucb
|
|---|
| 102 | .\"
|
|---|
| 103 | .\" Implement .Mx (MirBSD)
|
|---|
| 104 | .\"
|
|---|
| 105 | .ie "\*(tT"gnu" \{\
|
|---|
| 106 | . eo
|
|---|
| 107 | . de Mx
|
|---|
| 108 | . nr curr-font \n[.f]
|
|---|
| 109 | . nr curr-size \n[.ps]
|
|---|
| 110 | . ds str-Mx \f[\n[curr-font]]\s[\n[curr-size]u]
|
|---|
| 111 | . ds str-Mx1 \*[Tn-font-size]\%MirOS\*[str-Mx]
|
|---|
| 112 | . if !\n[arg-limit] \
|
|---|
| 113 | . if \n[.$] \{\
|
|---|
| 114 | . ds macro-name Mx
|
|---|
| 115 | . parse-args \$@
|
|---|
| 116 | . \}
|
|---|
| 117 | . if (\n[arg-limit] > \n[arg-ptr]) \{\
|
|---|
| 118 | . nr arg-ptr +1
|
|---|
| 119 | . ie (\n[type\n[arg-ptr]] == 2) \
|
|---|
| 120 | . as str-Mx1 \~\*[arg\n[arg-ptr]]
|
|---|
| 121 | . el \
|
|---|
| 122 | . nr arg-ptr -1
|
|---|
| 123 | . \}
|
|---|
| 124 | . ds arg\n[arg-ptr] "\*[str-Mx1]
|
|---|
| 125 | . nr type\n[arg-ptr] 2
|
|---|
| 126 | . ds space\n[arg-ptr] "\*[space]
|
|---|
| 127 | . nr num-args (\n[arg-limit] - \n[arg-ptr])
|
|---|
| 128 | . nr arg-limit \n[arg-ptr]
|
|---|
| 129 | . if \n[num-args] \
|
|---|
| 130 | . parse-space-vector
|
|---|
| 131 | . print-recursive
|
|---|
| 132 | ..
|
|---|
| 133 | . ec
|
|---|
| 134 | . ds sP \s0
|
|---|
| 135 | . ds tN \*[Tn-font-size]
|
|---|
| 136 | .\}
|
|---|
| 137 | .el \{\
|
|---|
| 138 | . de Mx
|
|---|
| 139 | . nr cF \\n(.f
|
|---|
| 140 | . nr cZ \\n(.s
|
|---|
| 141 | . ds aa \&\f\\n(cF\s\\n(cZ
|
|---|
| 142 | . if \\n(aC==0 \{\
|
|---|
| 143 | . ie \\n(.$==0 \&MirOS\\*(aa
|
|---|
| 144 | . el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
|
|---|
| 145 | . \}
|
|---|
| 146 | . if \\n(aC>\\n(aP \{\
|
|---|
| 147 | . nr aP \\n(aP+1
|
|---|
| 148 | . ie \\n(C\\n(aP==2 \{\
|
|---|
| 149 | . as b1 \&MirOS\ #\&\\*(A\\n(aP\\*(aa
|
|---|
| 150 | . ie \\n(aC>\\n(aP \{\
|
|---|
| 151 | . nr aP \\n(aP+1
|
|---|
| 152 | . nR
|
|---|
| 153 | . \}
|
|---|
| 154 | . el .aZ
|
|---|
| 155 | . \}
|
|---|
| 156 | . el \{\
|
|---|
| 157 | . as b1 \&MirOS\\*(aa
|
|---|
| 158 | . nR
|
|---|
| 159 | . \}
|
|---|
| 160 | . \}
|
|---|
| 161 | ..
|
|---|
| 162 | .\}
|
|---|
| 163 | .\"-
|
|---|
| 164 | .ie \ng==1 \{\
|
|---|
| 165 | . ds nc mircpio
|
|---|
| 166 | . ds np mirpax
|
|---|
| 167 | . ds nt mirtar
|
|---|
| 168 | . ds nm mirpax
|
|---|
| 169 | . Dt MIRPAX 1
|
|---|
| 170 | .\}
|
|---|
| 171 | .el .ie \ng==2 \{\
|
|---|
| 172 | . ds nc paxcpio
|
|---|
| 173 | . ds np pax
|
|---|
| 174 | . ds nt paxtar
|
|---|
| 175 | . ds nm pax
|
|---|
| 176 | . Dt PAX 1
|
|---|
| 177 | .\}
|
|---|
| 178 | .el \{\
|
|---|
| 179 | . ds nc cpio
|
|---|
| 180 | . ds np pax
|
|---|
| 181 | . ds nt tar
|
|---|
| 182 | . ds nm pax
|
|---|
| 183 | . Dt PAX 1
|
|---|
| 184 | .\}
|
|---|
| 185 | .\"-
|
|---|
| 186 | .Os MirBSD
|
|---|
| 187 | .Sh NAME
|
|---|
| 188 | .ie \ng==1 \{\
|
|---|
| 189 | .Nm mirpax
|
|---|
| 190 | .Nd read and write file archives and copy directory hierarchies
|
|---|
| 191 | .\}
|
|---|
| 192 | .el \{\
|
|---|
| 193 | .Nm pax
|
|---|
| 194 | .Nd read and write file archives and copy directory hierarchies
|
|---|
| 195 | .\}
|
|---|
| 196 | .Sh SYNOPSIS
|
|---|
| 197 | .Bk -words
|
|---|
| 198 | .Nm \*(nm
|
|---|
| 199 | .Op Fl 0cdJjnOvz
|
|---|
| 200 | .Op Fl E Ar limit
|
|---|
| 201 | .Op Fl f Ar archive
|
|---|
| 202 | .Op Fl G Ar group
|
|---|
| 203 | .Op Fl s Ar replstr
|
|---|
| 204 | .Op Fl T Ar range
|
|---|
| 205 | .Op Fl U Ar user
|
|---|
| 206 | .Op Ar pattern ...
|
|---|
| 207 | .Nm \*(nm
|
|---|
| 208 | .Fl r
|
|---|
| 209 | .Op Fl 0cDdiJjknOuvYZz
|
|---|
| 210 | .Op Fl E Ar limit
|
|---|
| 211 | .Op Fl f Ar archive
|
|---|
| 212 | .Op Fl G Ar group
|
|---|
| 213 | .Op Fl M Ar flag
|
|---|
| 214 | .Op Fl o Ar options
|
|---|
| 215 | .Op Fl p Ar string
|
|---|
| 216 | .Op Fl s Ar replstr
|
|---|
| 217 | .Op Fl T Ar range
|
|---|
| 218 | .Op Fl U Ar user
|
|---|
| 219 | .Op Ar pattern ...
|
|---|
| 220 | .Nm \*(nm
|
|---|
| 221 | .Fl w
|
|---|
| 222 | .Op Fl 0adHiJjLOPtuvXz
|
|---|
| 223 | .Op Fl B Ar bytes
|
|---|
| 224 | .Op Fl b Ar blocksize
|
|---|
| 225 | .Op Fl f Ar archive
|
|---|
| 226 | .Op Fl G Ar group
|
|---|
| 227 | .Op Fl M Ar flag
|
|---|
| 228 | .Op Fl o Ar options
|
|---|
| 229 | .Op Fl s Ar replstr
|
|---|
| 230 | .Op Fl T Ar range
|
|---|
| 231 | .Op Fl U Ar user
|
|---|
| 232 | .Op Fl x Ar format
|
|---|
| 233 | .Op Ar
|
|---|
| 234 | .Nm \*(nm
|
|---|
| 235 | .Fl rw
|
|---|
| 236 | .Op Fl 0DdHiJjkLlnOPtuvXYZ
|
|---|
| 237 | .Op Fl G Ar group
|
|---|
| 238 | .Op Fl p Ar string
|
|---|
| 239 | .Op Fl s Ar replstr
|
|---|
| 240 | .Op Fl T Ar range
|
|---|
| 241 | .Op Fl U Ar user
|
|---|
| 242 | .Op Ar
|
|---|
| 243 | .Ar directory
|
|---|
| 244 | .Ek
|
|---|
| 245 | .Sh DESCRIPTION
|
|---|
| 246 | .Nm
|
|---|
| 247 | will read, write, and list the members of an archive file
|
|---|
| 248 | and will copy directory hierarchies.
|
|---|
| 249 | .Nm
|
|---|
| 250 | operation is independent of the specific archive format
|
|---|
| 251 | and supports a wide variety of different archive formats.
|
|---|
| 252 | A list of supported archive formats can be found under the description of the
|
|---|
| 253 | .Fl x
|
|---|
| 254 | option.
|
|---|
| 255 | .Pp
|
|---|
| 256 | The presence of the
|
|---|
| 257 | .Fl r
|
|---|
| 258 | and the
|
|---|
| 259 | .Fl w
|
|---|
| 260 | options specifies which of the following functional modes
|
|---|
| 261 | .Nm
|
|---|
| 262 | will operate under:
|
|---|
| 263 | .Em list , read , write ,
|
|---|
| 264 | and
|
|---|
| 265 | .Em copy .
|
|---|
| 266 | .Bl -tag -width 6n
|
|---|
| 267 | .It \*(Ltnone\*(Gt
|
|---|
| 268 | .Em List .
|
|---|
| 269 | .Nm
|
|---|
| 270 | will write to standard output
|
|---|
| 271 | a table of contents of the members of the archive file read from
|
|---|
| 272 | standard input, whose pathnames match the specified
|
|---|
| 273 | .Ar pattern
|
|---|
| 274 | arguments.
|
|---|
| 275 | The table of contents contains one filename per line
|
|---|
| 276 | and is written using single line buffering.
|
|---|
| 277 | .It Fl r
|
|---|
| 278 | .Em Read .
|
|---|
| 279 | .Nm
|
|---|
| 280 | extracts the members of the archive file read from the standard input,
|
|---|
| 281 | with pathnames matching the specified
|
|---|
| 282 | .Ar pattern
|
|---|
| 283 | arguments.
|
|---|
| 284 | The archive format and blocking is automatically determined on input.
|
|---|
| 285 | When an extracted file is a directory, the entire file hierarchy
|
|---|
| 286 | rooted at that directory is extracted.
|
|---|
| 287 | All extracted files are created relative to the current file hierarchy.
|
|---|
| 288 | The setting of ownership, access and modification times, and file mode of
|
|---|
| 289 | the extracted files are discussed in more detail under the
|
|---|
| 290 | .Fl p
|
|---|
| 291 | option.
|
|---|
| 292 | .It Fl w
|
|---|
| 293 | .Em Write .
|
|---|
| 294 | .Nm
|
|---|
| 295 | writes an archive containing the
|
|---|
| 296 | .Ar file
|
|---|
| 297 | operands to standard output
|
|---|
| 298 | using the specified archive format.
|
|---|
| 299 | When no
|
|---|
| 300 | .Ar file
|
|---|
| 301 | operands are specified, a list of files to copy with one per line is read from
|
|---|
| 302 | standard input.
|
|---|
| 303 | When a
|
|---|
| 304 | .Ar file
|
|---|
| 305 | operand is also a directory, the entire file hierarchy rooted
|
|---|
| 306 | at that directory will be included.
|
|---|
| 307 | .It Fl rw
|
|---|
| 308 | .Em Copy .
|
|---|
| 309 | .Nm
|
|---|
| 310 | copies the
|
|---|
| 311 | .Ar file
|
|---|
| 312 | operands to the destination
|
|---|
| 313 | .Ar directory .
|
|---|
| 314 | When no
|
|---|
| 315 | .Ar file
|
|---|
| 316 | operands are specified, a list of files to copy with one per line is read from
|
|---|
| 317 | the standard input.
|
|---|
| 318 | When a
|
|---|
| 319 | .Ar file
|
|---|
| 320 | operand is also a directory the entire file
|
|---|
| 321 | hierarchy rooted at that directory will be included.
|
|---|
| 322 | The effect of the
|
|---|
| 323 | .Em copy
|
|---|
| 324 | is as if the copied files were written to an archive file and then
|
|---|
| 325 | subsequently extracted, except that there may be hard links between
|
|---|
| 326 | the original and the copied files (see the
|
|---|
| 327 | .Fl l
|
|---|
| 328 | option below).
|
|---|
| 329 | .Pp
|
|---|
| 330 | .Sy Warning :
|
|---|
| 331 | The destination
|
|---|
| 332 | .Ar directory
|
|---|
| 333 | must not be one of the
|
|---|
| 334 | .Ar file
|
|---|
| 335 | operands or a member of a file hierarchy rooted at one of the
|
|---|
| 336 | .Ar file
|
|---|
| 337 | operands.
|
|---|
| 338 | The result of a
|
|---|
| 339 | .Em copy
|
|---|
| 340 | under these conditions is unpredictable.
|
|---|
| 341 | .El
|
|---|
| 342 | .Pp
|
|---|
| 343 | While processing a damaged archive during a
|
|---|
| 344 | .Em read
|
|---|
| 345 | or
|
|---|
| 346 | .Em list
|
|---|
| 347 | operation,
|
|---|
| 348 | .Nm
|
|---|
| 349 | will attempt to recover from media defects and will search through the archive
|
|---|
| 350 | to locate and process the largest number of archive members possible (see the
|
|---|
| 351 | .Fl E
|
|---|
| 352 | option for more details on error handling).
|
|---|
| 353 | .Pp
|
|---|
| 354 | The
|
|---|
| 355 | .Ar directory
|
|---|
| 356 | operand specifies a destination directory pathname.
|
|---|
| 357 | If the
|
|---|
| 358 | .Ar directory
|
|---|
| 359 | operand does not exist, or it is not writable by the user,
|
|---|
| 360 | or it is not of type directory,
|
|---|
| 361 | .Nm
|
|---|
| 362 | will exit with a non-zero exit status.
|
|---|
| 363 | .Pp
|
|---|
| 364 | The
|
|---|
| 365 | .Ar pattern
|
|---|
| 366 | operand is used to select one or more pathnames of archive members.
|
|---|
| 367 | Archive members are selected using the pattern matching notation described
|
|---|
| 368 | by
|
|---|
| 369 | .Xr glob 3 .
|
|---|
| 370 | When the
|
|---|
| 371 | .Ar pattern
|
|---|
| 372 | operand is not supplied, all members of the archive will be selected.
|
|---|
| 373 | When a
|
|---|
| 374 | .Ar pattern
|
|---|
| 375 | matches a directory, the entire file hierarchy rooted at that directory will
|
|---|
| 376 | be selected.
|
|---|
| 377 | When a
|
|---|
| 378 | .Ar pattern
|
|---|
| 379 | operand does not select at least one archive member,
|
|---|
| 380 | .Nm
|
|---|
| 381 | will write these
|
|---|
| 382 | .Ar pattern
|
|---|
| 383 | operands in a diagnostic message to standard error
|
|---|
| 384 | and then exit with a non-zero exit status.
|
|---|
| 385 | .Pp
|
|---|
| 386 | The
|
|---|
| 387 | .Ar file
|
|---|
| 388 | operand specifies the pathname of a file to be copied or archived.
|
|---|
| 389 | When a
|
|---|
| 390 | .Ar file
|
|---|
| 391 | operand does not select at least one archive member,
|
|---|
| 392 | .Nm
|
|---|
| 393 | will write these
|
|---|
| 394 | .Ar file
|
|---|
| 395 | operand pathnames in a diagnostic message to standard error
|
|---|
| 396 | and then exit with a non-zero exit status.
|
|---|
| 397 | .Pp
|
|---|
| 398 | The options are as follows:
|
|---|
| 399 | .Bl -tag -width Ds
|
|---|
| 400 | .It Fl 0
|
|---|
| 401 | Use the NUL
|
|---|
| 402 | .Pq Ql \e0
|
|---|
| 403 | character as a pathname terminator, instead of newline
|
|---|
| 404 | .Pq Ql \en .
|
|---|
| 405 | This applies only to the pathnames read from standard input in
|
|---|
| 406 | the write and copy modes,
|
|---|
| 407 | and to the pathnames written to standard output in list mode.
|
|---|
| 408 | This option is expected to be used in concert with the
|
|---|
| 409 | .Fl print0
|
|---|
| 410 | function in
|
|---|
| 411 | .Xr find 1
|
|---|
| 412 | or the
|
|---|
| 413 | .Fl 0
|
|---|
| 414 | flag in
|
|---|
| 415 | .Xr xargs 1 .
|
|---|
| 416 | .It Fl a
|
|---|
| 417 | Append the given
|
|---|
| 418 | .Ar file
|
|---|
| 419 | operands
|
|---|
| 420 | to the end of an archive that was previously written.
|
|---|
| 421 | If an archive format is not specified with a
|
|---|
| 422 | .Fl x
|
|---|
| 423 | option, the format currently being used in the archive will be selected.
|
|---|
| 424 | Any attempt to append to an archive in a format different from the
|
|---|
| 425 | format already used in the archive will cause
|
|---|
| 426 | .Nm
|
|---|
| 427 | to exit immediately
|
|---|
| 428 | with a non-zero exit status.
|
|---|
| 429 | The blocking size used in the archive volume where writing starts
|
|---|
| 430 | will continue to be used for the remainder of that archive volume.
|
|---|
| 431 | .Pp
|
|---|
| 432 | .Sy Warning :
|
|---|
| 433 | Many storage devices are not able to support the operations necessary
|
|---|
| 434 | to perform an append operation.
|
|---|
| 435 | Any attempt to append to an archive stored on such a device may damage the
|
|---|
| 436 | archive or have other unpredictable results.
|
|---|
| 437 | Tape drives in particular are more likely to not support an append operation.
|
|---|
| 438 | An archive stored in a regular file system file or on a disk device will
|
|---|
| 439 | usually support an append operation.
|
|---|
| 440 | .It Fl B Ar bytes
|
|---|
| 441 | Limit the number of bytes written to a single archive volume to
|
|---|
| 442 | .Ar bytes .
|
|---|
| 443 | The
|
|---|
| 444 | .Ar bytes
|
|---|
| 445 | limit can end with
|
|---|
| 446 | .Sq Li m ,
|
|---|
| 447 | .Sq Li k ,
|
|---|
| 448 | or
|
|---|
| 449 | .Sq Li b
|
|---|
| 450 | to specify multiplication by 1048576 (1M), 1024 (1K) or 512, respectively.
|
|---|
| 451 | A pair of
|
|---|
| 452 | .Ar bytes
|
|---|
| 453 | limits can be separated by
|
|---|
| 454 | .Sq Li x
|
|---|
| 455 | to indicate a product.
|
|---|
| 456 | .Pp
|
|---|
| 457 | .Em Warning :
|
|---|
| 458 | Only use this option when writing an archive to a device which supports
|
|---|
| 459 | an end of file read condition based on last (or largest) write offset
|
|---|
| 460 | (such as a regular file or a tape drive).
|
|---|
| 461 | The use of this option with a floppy or hard disk is not recommended.
|
|---|
| 462 | .It Fl b Ar blocksize
|
|---|
| 463 | When
|
|---|
| 464 | .Em writing
|
|---|
| 465 | an archive,
|
|---|
| 466 | block the output at a positive decimal integer number of
|
|---|
| 467 | bytes per write to the archive file.
|
|---|
| 468 | The
|
|---|
| 469 | .Ar blocksize
|
|---|
| 470 | must be a multiple of 512 bytes with a maximum of 64512 bytes.
|
|---|
| 471 | Archive block sizes larger than 32256 bytes violate the
|
|---|
| 472 | .Tn POSIX
|
|---|
| 473 | standard and will not be portable to all systems.
|
|---|
| 474 | A
|
|---|
| 475 | .Ar blocksize
|
|---|
| 476 | can end with
|
|---|
| 477 | .Sq Li k
|
|---|
| 478 | or
|
|---|
| 479 | .Sq Li b
|
|---|
| 480 | to specify multiplication by 1024 (1K) or 512, respectively.
|
|---|
| 481 | A pair of
|
|---|
| 482 | .Ar blocksizes
|
|---|
| 483 | can be separated by
|
|---|
| 484 | .Sq Li x
|
|---|
| 485 | to indicate a product.
|
|---|
| 486 | A specific archive device may impose additional restrictions on the size
|
|---|
| 487 | of blocking it will support.
|
|---|
| 488 | When blocking is not specified, the default
|
|---|
| 489 | .Ar blocksize
|
|---|
| 490 | is dependent on the specific archive format being used (see the
|
|---|
| 491 | .Fl x
|
|---|
| 492 | option).
|
|---|
| 493 | .It Fl c
|
|---|
| 494 | Match all file or archive members
|
|---|
| 495 | .Em except
|
|---|
| 496 | those specified by the
|
|---|
| 497 | .Ar pattern
|
|---|
| 498 | and
|
|---|
| 499 | .Ar file
|
|---|
| 500 | operands.
|
|---|
| 501 | .It Fl D
|
|---|
| 502 | This option is the same as the
|
|---|
| 503 | .Fl u
|
|---|
| 504 | option, except that the file inode change time is checked instead of the
|
|---|
| 505 | file modification time.
|
|---|
| 506 | The file inode change time can be used to select files whose inode information
|
|---|
| 507 | (e.g., UID, GID, etc.) is newer than a copy of the file in the destination
|
|---|
| 508 | .Ar directory .
|
|---|
| 509 | .It Fl d
|
|---|
| 510 | Cause files of type directory being copied or archived, or archive members of
|
|---|
| 511 | type directory being extracted, to match only the directory file or archive
|
|---|
| 512 | member and not the file hierarchy rooted at the directory.
|
|---|
| 513 | .It Fl E Ar limit
|
|---|
| 514 | Limit the number of consecutive read faults while trying to read a flawed
|
|---|
| 515 | archive to
|
|---|
| 516 | .Ar limit .
|
|---|
| 517 | With a positive
|
|---|
| 518 | .Ar limit ,
|
|---|
| 519 | .Nm
|
|---|
| 520 | will attempt to recover from an archive read error and will
|
|---|
| 521 | continue processing starting with the next file stored in the archive.
|
|---|
| 522 | A
|
|---|
| 523 | .Ar limit
|
|---|
| 524 | of 0 will cause
|
|---|
| 525 | .Nm
|
|---|
| 526 | to stop operation after the first read error is detected on an archive volume.
|
|---|
| 527 | A
|
|---|
| 528 | .Ar limit
|
|---|
| 529 | of
|
|---|
| 530 | .Li NONE
|
|---|
| 531 | will cause
|
|---|
| 532 | .Nm
|
|---|
| 533 | to attempt to recover from read errors forever.
|
|---|
| 534 | The default
|
|---|
| 535 | .Ar limit
|
|---|
| 536 | is a small positive number of retries.
|
|---|
| 537 | .Pp
|
|---|
| 538 | .Em Warning :
|
|---|
| 539 | Using this option with
|
|---|
| 540 | .Li NONE
|
|---|
| 541 | should be used with extreme caution as
|
|---|
| 542 | .Nm
|
|---|
| 543 | may get stuck in an infinite loop on a very badly flawed archive.
|
|---|
| 544 | .It Fl f Ar archive
|
|---|
| 545 | Specify
|
|---|
| 546 | .Ar archive
|
|---|
| 547 | as the pathname of the input or output archive, overriding the default
|
|---|
| 548 | standard input (for
|
|---|
| 549 | .Em list
|
|---|
| 550 | and
|
|---|
| 551 | .Em read )
|
|---|
| 552 | or standard output
|
|---|
| 553 | (for
|
|---|
| 554 | .Em write ) .
|
|---|
| 555 | A single archive may span multiple files and different archive devices.
|
|---|
| 556 | When required,
|
|---|
| 557 | .Nm
|
|---|
| 558 | will prompt for the pathname of the file or device of the next volume in the
|
|---|
| 559 | archive.
|
|---|
| 560 | .It Fl G Ar group
|
|---|
| 561 | Select a file based on its
|
|---|
| 562 | .Ar group
|
|---|
| 563 | name, or when starting with a
|
|---|
| 564 | .Cm # ,
|
|---|
| 565 | a numeric GID.
|
|---|
| 566 | A
|
|---|
| 567 | .Ql \e
|
|---|
| 568 | can be used to escape the
|
|---|
| 569 | .Cm # .
|
|---|
| 570 | Multiple
|
|---|
| 571 | .Fl G
|
|---|
| 572 | options may be supplied and checking stops with the first match.
|
|---|
| 573 | .It Fl H
|
|---|
| 574 | Follow only command-line symbolic links while performing a physical file
|
|---|
| 575 | system traversal.
|
|---|
| 576 | .It Fl i
|
|---|
| 577 | Interactively rename files or archive members.
|
|---|
| 578 | For each archive member matching a
|
|---|
| 579 | .Ar pattern
|
|---|
| 580 | operand or each file matching a
|
|---|
| 581 | .Ar file
|
|---|
| 582 | operand,
|
|---|
| 583 | .Nm
|
|---|
| 584 | will prompt to
|
|---|
| 585 | .Pa /dev/tty
|
|---|
| 586 | giving the name of the file, its file mode, and its modification time.
|
|---|
| 587 | .Nm
|
|---|
| 588 | will then read a line from
|
|---|
| 589 | .Pa /dev/tty .
|
|---|
| 590 | If this line is blank, the file or archive member is skipped.
|
|---|
| 591 | If this line consists of a single period, the
|
|---|
| 592 | file or archive member is processed with no modification to its name.
|
|---|
| 593 | Otherwise, its name is replaced with the contents of the line.
|
|---|
| 594 | .Nm
|
|---|
| 595 | will immediately exit with a non-zero exit status if
|
|---|
| 596 | .Dv EOF
|
|---|
| 597 | is encountered when reading a response or if
|
|---|
| 598 | .Pa /dev/tty
|
|---|
| 599 | cannot be opened for reading and writing.
|
|---|
| 600 | .It Fl J
|
|---|
| 601 | Use the xz utility to compress (decompress) the archive
|
|---|
| 602 | while writing (reading).
|
|---|
| 603 | Incompatible with
|
|---|
| 604 | .Fl a .
|
|---|
| 605 | .It Fl j
|
|---|
| 606 | Use the bzip2 utility to compress (decompress) the archive
|
|---|
| 607 | while writing (reading).
|
|---|
| 608 | Incompatible with
|
|---|
| 609 | .Fl a .
|
|---|
| 610 | .It Fl k
|
|---|
| 611 | Do not overwrite existing files.
|
|---|
| 612 | .It Fl L
|
|---|
| 613 | Follow all symbolic links to perform a logical file system traversal.
|
|---|
| 614 | .It Fl l
|
|---|
| 615 | (The lowercase letter
|
|---|
| 616 | .Dq ell . )
|
|---|
| 617 | Link files.
|
|---|
| 618 | In the
|
|---|
| 619 | .Em copy
|
|---|
| 620 | mode
|
|---|
| 621 | .Pq Fl r Fl w ,
|
|---|
| 622 | hard links are made between the source and destination file hierarchies
|
|---|
| 623 | whenever possible.
|
|---|
| 624 | .It Fl M Ar flag
|
|---|
| 625 | Configure the archive normaliser.
|
|---|
| 626 | .Ar flag
|
|---|
| 627 | is either a numeric value compatible to
|
|---|
| 628 | .Xr strtonum 3
|
|---|
| 629 | which is directly stored in the flags word, or
|
|---|
| 630 | one of the following values, optionally prefixed with
|
|---|
| 631 | .Dq no\-
|
|---|
| 632 | to turn them off:
|
|---|
| 633 | .Pp
|
|---|
| 634 | .Bl -tag -width xxxxxx -compact
|
|---|
| 635 | .It Ar inodes
|
|---|
| 636 | 0x0001: Serialise inodes, zero device info.
|
|---|
| 637 | .br
|
|---|
| 638 | (cpio, sv4cpio, sv4crc)
|
|---|
| 639 | .It Ar links
|
|---|
| 640 | 0x0002: Store content of hard links only once.
|
|---|
| 641 | .br
|
|---|
| 642 | (cpio, sv4cpio, sv4crc)
|
|---|
| 643 | .It Ar mtime
|
|---|
| 644 | 0x0004: Zero out the file modification time.
|
|---|
| 645 | .br
|
|---|
| 646 | (ar, cpio, sv4cpio, sv4crc, ustar)
|
|---|
| 647 | .It Ar uidgid
|
|---|
| 648 | 0x0008: Set owner to 0:0 (root:wheel).
|
|---|
| 649 | .br
|
|---|
| 650 | (ar, cpio, sv4cpio, sv4crc, ustar)
|
|---|
| 651 | .It Ar verb
|
|---|
| 652 | 0x0010: Debug this option.
|
|---|
| 653 | .It Ar debug
|
|---|
| 654 | 0x0020: Debug file header storage.
|
|---|
| 655 | .It Ar lncp
|
|---|
| 656 | 0x0040: Extract hard links by copy if link fails.
|
|---|
| 657 | .It Ar numid
|
|---|
| 658 | 0x0080: Use only numeric uid and gid values.
|
|---|
| 659 | .br
|
|---|
| 660 | (ustar)
|
|---|
| 661 | .It Ar gslash
|
|---|
| 662 | 0x0100: Append a slash after directory names.
|
|---|
| 663 | .br
|
|---|
| 664 | (ustar)
|
|---|
| 665 | .It Ar set
|
|---|
| 666 | 0x0003: Keep ownership and mtime intact.
|
|---|
| 667 | .It Ar dist
|
|---|
| 668 | 0x008B: Clean everything except mtime.
|
|---|
| 669 | .It Ar norm
|
|---|
| 670 | 0x008F: Clean everything.
|
|---|
| 671 | .It Ar root
|
|---|
| 672 | 0x0089: Clean owner and device information.
|
|---|
| 673 | .El
|
|---|
| 674 | .Pp
|
|---|
| 675 | This option is only implemented for the ar, cpio, sv4cpio,
|
|---|
| 676 | sv4crc, and ustar file format writing routines.
|
|---|
| 677 | .Pp
|
|---|
| 678 | TODO: The
|
|---|
| 679 | .Nm \*(nm
|
|---|
| 680 | frontend should be using the
|
|---|
| 681 | .Fl o
|
|---|
| 682 | option for handling this feature instead.
|
|---|
| 683 | .It Fl n
|
|---|
| 684 | Select the first archive member that matches each
|
|---|
| 685 | .Ar pattern
|
|---|
| 686 | operand.
|
|---|
| 687 | No more than one archive member is matched for each
|
|---|
| 688 | .Ar pattern .
|
|---|
| 689 | When members of type directory are matched, the file hierarchy rooted at that
|
|---|
| 690 | directory is also matched (unless
|
|---|
| 691 | .Fl d
|
|---|
| 692 | is also specified).
|
|---|
| 693 | .It Fl O
|
|---|
| 694 | Force the archive to be one volume.
|
|---|
| 695 | If a volume ends prematurely,
|
|---|
| 696 | .Nm
|
|---|
| 697 | will not prompt for a new volume.
|
|---|
| 698 | This option can be useful for
|
|---|
| 699 | automated tasks where error recovery cannot be performed by a human.
|
|---|
| 700 | .It Fl o Ar options
|
|---|
| 701 | Information to modify the algorithm for extracting or writing archive files
|
|---|
| 702 | which is specific to the archive format specified by
|
|---|
| 703 | .Fl x .
|
|---|
| 704 | In general,
|
|---|
| 705 | .Ar options
|
|---|
| 706 | take the form:
|
|---|
| 707 | .Ar name Ns = Ns Ar value .
|
|---|
| 708 | .Pp
|
|---|
| 709 | The following options are available for the old
|
|---|
| 710 | .Bx
|
|---|
| 711 | .Em tar
|
|---|
| 712 | format:
|
|---|
| 713 | .Pp
|
|---|
| 714 | .Bl -tag -width Ds -compact
|
|---|
| 715 | .It Cm nodir
|
|---|
| 716 | .It Cm write_opt=nodir
|
|---|
| 717 | When writing archives, omit the storage of directories.
|
|---|
| 718 | .El
|
|---|
| 719 | .It Fl P
|
|---|
| 720 | Do not follow symbolic links, perform a physical file system traversal.
|
|---|
| 721 | This is the default mode.
|
|---|
| 722 | .It Fl p Ar string
|
|---|
| 723 | Specify one or more file characteristic options (privileges).
|
|---|
| 724 | The
|
|---|
| 725 | .Ar string
|
|---|
| 726 | option-argument is a string specifying file characteristics to be retained or
|
|---|
| 727 | discarded on extraction.
|
|---|
| 728 | The string consists of the specification characters
|
|---|
| 729 | .Cm a , e , m , o ,
|
|---|
| 730 | and
|
|---|
| 731 | .Cm p .
|
|---|
| 732 | Multiple characteristics can be concatenated within the same string
|
|---|
| 733 | and multiple
|
|---|
| 734 | .Fl p
|
|---|
| 735 | options can be specified.
|
|---|
| 736 | The meanings of the specification characters are as follows:
|
|---|
| 737 | .Bl -tag -width 2n
|
|---|
| 738 | .It Cm a
|
|---|
| 739 | Do not preserve file access times.
|
|---|
| 740 | By default, file access times are preserved whenever possible.
|
|---|
| 741 | .It Cm e
|
|---|
| 742 | .Dq Preserve everything ,
|
|---|
| 743 | the user ID, group ID, file mode bits,
|
|---|
| 744 | file access time, and file modification time.
|
|---|
| 745 | This is intended to be used by
|
|---|
| 746 | .Em root ,
|
|---|
| 747 | someone with all the appropriate privileges, in order to preserve all
|
|---|
| 748 | aspects of the files as they are recorded in the archive.
|
|---|
| 749 | The
|
|---|
| 750 | .Cm e
|
|---|
| 751 | flag is the sum of the
|
|---|
| 752 | .Cm o
|
|---|
| 753 | and
|
|---|
| 754 | .Cm p
|
|---|
| 755 | flags.
|
|---|
| 756 | .It Cm m
|
|---|
| 757 | Do not preserve file modification times.
|
|---|
| 758 | By default, file modification times are preserved whenever possible.
|
|---|
| 759 | .It Cm o
|
|---|
| 760 | Preserve the user ID and group ID.
|
|---|
| 761 | .It Cm p
|
|---|
| 762 | .Dq Preserve
|
|---|
| 763 | the file mode bits.
|
|---|
| 764 | This is intended to be used by a
|
|---|
| 765 | .Em user
|
|---|
| 766 | with regular privileges who wants to preserve all aspects of the file other
|
|---|
| 767 | than the ownership.
|
|---|
| 768 | The file times are preserved by default, but two other flags are offered to
|
|---|
| 769 | disable this and use the time of extraction instead.
|
|---|
| 770 | .El
|
|---|
| 771 | .Pp
|
|---|
| 772 | In the preceding list,
|
|---|
| 773 | .Sq preserve
|
|---|
| 774 | indicates that an attribute stored in the archive is given to the
|
|---|
| 775 | extracted file, subject to the permissions of the invoking
|
|---|
| 776 | process.
|
|---|
| 777 | Otherwise the attribute of the extracted file is determined as
|
|---|
| 778 | part of the normal file creation action.
|
|---|
| 779 | If neither the
|
|---|
| 780 | .Cm e
|
|---|
| 781 | nor the
|
|---|
| 782 | .Cm o
|
|---|
| 783 | specification character is specified, or the user ID and group ID are not
|
|---|
| 784 | preserved for any reason,
|
|---|
| 785 | .Nm
|
|---|
| 786 | will not set the
|
|---|
| 787 | .Dv S_ISUID
|
|---|
| 788 | .Em ( setuid )
|
|---|
| 789 | and
|
|---|
| 790 | .Dv S_ISGID
|
|---|
| 791 | .Em ( setgid )
|
|---|
| 792 | bits of the file mode.
|
|---|
| 793 | If the preservation of any of these items fails for any reason,
|
|---|
| 794 | .Nm
|
|---|
| 795 | will write a diagnostic message to standard error.
|
|---|
| 796 | Failure to preserve these items will affect the final exit status,
|
|---|
| 797 | but will not cause the extracted file to be deleted.
|
|---|
| 798 | If the file characteristic letters in any of the string option-arguments are
|
|---|
| 799 | duplicated or conflict with each other, the one(s) given last will take
|
|---|
| 800 | precedence.
|
|---|
| 801 | For example, if
|
|---|
| 802 | .Fl p Ar eme
|
|---|
| 803 | is specified, file modification times are still preserved.
|
|---|
| 804 | .It Fl r
|
|---|
| 805 | Read an archive file from standard input
|
|---|
| 806 | and extract the specified
|
|---|
| 807 | .Ar file
|
|---|
| 808 | operands.
|
|---|
| 809 | If any intermediate directories are needed in order to extract an archive
|
|---|
| 810 | member, these directories will be created as if
|
|---|
| 811 | .Xr mkdir 2
|
|---|
| 812 | was called with the bitwise inclusive
|
|---|
| 813 | .Tn OR
|
|---|
| 814 | of
|
|---|
| 815 | .Dv S_IRWXU , S_IRWXG ,
|
|---|
| 816 | and
|
|---|
| 817 | .Dv S_IRWXO
|
|---|
| 818 | as the mode argument.
|
|---|
| 819 | When the selected archive format supports the specification of linked
|
|---|
| 820 | files and these files cannot be linked while the archive is being extracted,
|
|---|
| 821 | .Nm
|
|---|
| 822 | will write a diagnostic message to standard error
|
|---|
| 823 | and exit with a non-zero exit status at the completion of operation.
|
|---|
| 824 | .It Fl s Ar replstr
|
|---|
| 825 | Modify the archive member names according to the substitution expression
|
|---|
| 826 | .Ar replstr ,
|
|---|
| 827 | using the syntax of the
|
|---|
| 828 | .Xr ed 1
|
|---|
| 829 | utility regular expressions.
|
|---|
| 830 | .Ar file
|
|---|
| 831 | or
|
|---|
| 832 | .Ar pattern
|
|---|
| 833 | arguments may be given to restrict the list of archive members to those
|
|---|
| 834 | specified.
|
|---|
| 835 | .Pp
|
|---|
| 836 | The format of these regular expressions is:
|
|---|
| 837 | .Pp
|
|---|
| 838 | .Dl /old/new/[gp]
|
|---|
| 839 | .Pp
|
|---|
| 840 | As in
|
|---|
| 841 | .Xr ed 1 ,
|
|---|
| 842 | .Ar old
|
|---|
| 843 | is a basic regular expression (see
|
|---|
| 844 | .Xr re_format 7 )
|
|---|
| 845 | and
|
|---|
| 846 | .Ar new
|
|---|
| 847 | can contain an ampersand
|
|---|
| 848 | .Pq Ql & ,
|
|---|
| 849 | .Ql \e Ns Em n
|
|---|
| 850 | (where
|
|---|
| 851 | .Em n
|
|---|
| 852 | is a digit) back-references,
|
|---|
| 853 | or subexpression matching.
|
|---|
| 854 | The
|
|---|
| 855 | .Ar old
|
|---|
| 856 | string may also contain newline characters.
|
|---|
| 857 | Any non-null character can be used as a delimiter
|
|---|
| 858 | .Po
|
|---|
| 859 | .Ql /
|
|---|
| 860 | is shown here
|
|---|
| 861 | .Pc .
|
|---|
| 862 | Multiple
|
|---|
| 863 | .Fl s
|
|---|
| 864 | expressions can be specified.
|
|---|
| 865 | The expressions are applied in the order they are specified on the
|
|---|
| 866 | command line, terminating with the first successful substitution.
|
|---|
| 867 | .Pp
|
|---|
| 868 | The optional trailing
|
|---|
| 869 | .Cm g
|
|---|
| 870 | continues to apply the substitution expression to the pathname substring,
|
|---|
| 871 | which starts with the first character following the end of the last successful
|
|---|
| 872 | substitution.
|
|---|
| 873 | The first unsuccessful substitution stops the operation of the
|
|---|
| 874 | .Cm g
|
|---|
| 875 | option.
|
|---|
| 876 | The optional trailing
|
|---|
| 877 | .Cm p
|
|---|
| 878 | will cause the final result of a successful substitution to be written to
|
|---|
| 879 | standard error in the following format:
|
|---|
| 880 | .Pp
|
|---|
| 881 | .D1 Em original-pathname No \*(Gt\*(Gt Em new-pathname
|
|---|
| 882 | .Pp
|
|---|
| 883 | File or archive member names that substitute to the empty string
|
|---|
| 884 | are not selected and will be skipped.
|
|---|
| 885 | .It Fl T Ar range
|
|---|
| 886 | Allow files to be selected based on a file modification or inode change
|
|---|
| 887 | time falling within the specified time range.
|
|---|
| 888 | The range has the format:
|
|---|
| 889 | .Sm off
|
|---|
| 890 | .Bd -filled -offset indent
|
|---|
| 891 | .Oo Ar from_date Oc Oo ,
|
|---|
| 892 | .Ar to_date Oc Oo /
|
|---|
| 893 | .Oo Cm c Oc Op Cm m Oc
|
|---|
| 894 | .Ed
|
|---|
| 895 | .Sm on
|
|---|
| 896 | .Pp
|
|---|
| 897 | The dates specified by
|
|---|
| 898 | .Ar from_date
|
|---|
| 899 | to
|
|---|
| 900 | .Ar to_date
|
|---|
| 901 | are inclusive.
|
|---|
| 902 | If only a
|
|---|
| 903 | .Ar from_date
|
|---|
| 904 | is supplied, all files with a modification or inode change time
|
|---|
| 905 | equal to or younger are selected.
|
|---|
| 906 | If only a
|
|---|
| 907 | .Ar to_date
|
|---|
| 908 | is supplied, all files with a modification or inode change time
|
|---|
| 909 | equal to or older will be selected.
|
|---|
| 910 | When the
|
|---|
| 911 | .Ar from_date
|
|---|
| 912 | is equal to the
|
|---|
| 913 | .Ar to_date ,
|
|---|
| 914 | only files with a modification or inode change time of exactly that
|
|---|
| 915 | time will be selected.
|
|---|
| 916 | .Pp
|
|---|
| 917 | When
|
|---|
| 918 | .Nm
|
|---|
| 919 | is in the
|
|---|
| 920 | .Em write
|
|---|
| 921 | or
|
|---|
| 922 | .Em copy
|
|---|
| 923 | mode, the optional trailing field
|
|---|
| 924 | .Oo Cm c Oc Ns Op Cm m
|
|---|
| 925 | can be used to determine which file time (inode change, file modification or
|
|---|
| 926 | both) are used in the comparison.
|
|---|
| 927 | If neither is specified, the default is to use file modification time only.
|
|---|
| 928 | The
|
|---|
| 929 | .Cm m
|
|---|
| 930 | specifies the comparison of file modification time (the time when
|
|---|
| 931 | the file was last written).
|
|---|
| 932 | The
|
|---|
| 933 | .Cm c
|
|---|
| 934 | specifies the comparison of inode change time (the time when the file
|
|---|
| 935 | inode was last changed; e.g., a change of owner, group, mode, etc).
|
|---|
| 936 | When
|
|---|
| 937 | .Cm c
|
|---|
| 938 | and
|
|---|
| 939 | .Cm m
|
|---|
| 940 | are both specified, then the modification and inode change times are
|
|---|
| 941 | both compared.
|
|---|
| 942 | .Pp
|
|---|
| 943 | The inode change time comparison is useful in selecting files whose
|
|---|
| 944 | attributes were recently changed or selecting files which were recently
|
|---|
| 945 | created and had their modification time reset to an older time (as what
|
|---|
| 946 | happens when a file is extracted from an archive and the modification time
|
|---|
| 947 | is preserved).
|
|---|
| 948 | Time comparisons using both file times is useful when
|
|---|
| 949 | .Nm
|
|---|
| 950 | is used to create a time based incremental archive (only files that were
|
|---|
| 951 | changed during a specified time range will be archived).
|
|---|
| 952 | .Pp
|
|---|
| 953 | A time range is made up of six different fields and each field must contain two
|
|---|
| 954 | digits.
|
|---|
| 955 | The format is:
|
|---|
| 956 | .Pp
|
|---|
| 957 | .Dl [[[[[cc]yy]mm]dd]HH]MM[.SS]
|
|---|
| 958 | .Pp
|
|---|
| 959 | Where
|
|---|
| 960 | .Ar cc
|
|---|
| 961 | is the first two digits of the year (the century),
|
|---|
| 962 | .Ar yy
|
|---|
| 963 | is the last two digits of the year,
|
|---|
| 964 | the first
|
|---|
| 965 | .Ar mm
|
|---|
| 966 | is the month (from 01 to 12),
|
|---|
| 967 | .Ar dd
|
|---|
| 968 | is the day of the month (from 01 to 31),
|
|---|
| 969 | .Ar HH
|
|---|
| 970 | is the hour of the day (from 00 to 23),
|
|---|
| 971 | .Ar MM
|
|---|
| 972 | is the minute (from 00 to 59),
|
|---|
| 973 | and
|
|---|
| 974 | .Ar SS
|
|---|
| 975 | is the seconds (from 00 to 59).
|
|---|
| 976 | The minute field
|
|---|
| 977 | .Ar MM
|
|---|
| 978 | is required, while the other fields are optional and must be added in the
|
|---|
| 979 | following order:
|
|---|
| 980 | .Ar HH , dd , mm ,
|
|---|
| 981 | .Ar yy , cc .
|
|---|
| 982 | .Pp
|
|---|
| 983 | The
|
|---|
| 984 | .Ar SS
|
|---|
| 985 | field may be added independently of the other fields.
|
|---|
| 986 | Time ranges are relative to the current time, so
|
|---|
| 987 | .Ic \-T 1234/cm
|
|---|
| 988 | would select all files with a modification or inode change time
|
|---|
| 989 | of 12:34 PM today or later.
|
|---|
| 990 | Multiple
|
|---|
| 991 | .Fl T
|
|---|
| 992 | time range can be supplied and checking stops with the first match.
|
|---|
| 993 | .It Fl t
|
|---|
| 994 | Reset the access times of any file or directory read or accessed by
|
|---|
| 995 | .Nm
|
|---|
| 996 | to be the same as they were before being read or accessed by
|
|---|
| 997 | .Nm \*(nm .
|
|---|
| 998 | .It Fl U Ar user
|
|---|
| 999 | Select a file based on its
|
|---|
| 1000 | .Ar user
|
|---|
| 1001 | name, or when starting with a
|
|---|
| 1002 | .Cm # ,
|
|---|
| 1003 | a numeric UID.
|
|---|
| 1004 | A
|
|---|
| 1005 | .Ql \e
|
|---|
| 1006 | can be used to escape the
|
|---|
| 1007 | .Cm # .
|
|---|
| 1008 | Multiple
|
|---|
| 1009 | .Fl U
|
|---|
| 1010 | options may be supplied and checking stops with the first match.
|
|---|
| 1011 | .It Fl u
|
|---|
| 1012 | Ignore files that are older (having a less recent file modification time)
|
|---|
| 1013 | than a pre-existing file or archive member with the same name.
|
|---|
| 1014 | During
|
|---|
| 1015 | .Em read ,
|
|---|
| 1016 | an archive member with the same name as a file in the file system will be
|
|---|
| 1017 | extracted if the archive member is newer than the file.
|
|---|
| 1018 | During
|
|---|
| 1019 | .Em write ,
|
|---|
| 1020 | a file system member with the same name as an archive member will be
|
|---|
| 1021 | written to the archive if it is newer than the archive member.
|
|---|
| 1022 | During
|
|---|
| 1023 | .Em copy ,
|
|---|
| 1024 | the file in the destination hierarchy is replaced by the file in the source
|
|---|
| 1025 | hierarchy or by a link to the file in the source hierarchy if the file in
|
|---|
| 1026 | the source hierarchy is newer.
|
|---|
| 1027 | .It Fl v
|
|---|
| 1028 | During a
|
|---|
| 1029 | .Em list
|
|---|
| 1030 | operation, produce a verbose table of contents using the format of the
|
|---|
| 1031 | .Xr ls 1
|
|---|
| 1032 | utility with the
|
|---|
| 1033 | .Fl l
|
|---|
| 1034 | option.
|
|---|
| 1035 | For pathnames representing a hard link to a previous member of the archive,
|
|---|
| 1036 | the output has the format:
|
|---|
| 1037 | .Pp
|
|---|
| 1038 | .Dl Em ls \-l listing Li == Em link-name
|
|---|
| 1039 | .Pp
|
|---|
| 1040 | For pathnames representing a symbolic link, the output has the format:
|
|---|
| 1041 | .Pp
|
|---|
| 1042 | .Dl Em ls \-l listing Li =\*(Gt Em link-name
|
|---|
| 1043 | .Pp
|
|---|
| 1044 | Where
|
|---|
| 1045 | .Em ls \-l listing
|
|---|
| 1046 | is the output format specified by the
|
|---|
| 1047 | .Xr ls 1
|
|---|
| 1048 | utility when used with the
|
|---|
| 1049 | .Fl l
|
|---|
| 1050 | option.
|
|---|
| 1051 | Otherwise for all the other operational modes
|
|---|
| 1052 | .Po Em read , write , No and Em copy
|
|---|
| 1053 | .Pc ,
|
|---|
| 1054 | pathnames are written and flushed to standard error
|
|---|
| 1055 | without a trailing newline
|
|---|
| 1056 | as soon as processing begins on that file or
|
|---|
| 1057 | archive member.
|
|---|
| 1058 | The trailing newline
|
|---|
| 1059 | is not buffered and is written only after the file has been read or written.
|
|---|
| 1060 | .It Fl w
|
|---|
| 1061 | Write files to the standard output
|
|---|
| 1062 | in the specified archive format.
|
|---|
| 1063 | When no
|
|---|
| 1064 | .Ar file
|
|---|
| 1065 | operands are specified, standard input
|
|---|
| 1066 | is read for a list of pathnames with one per line without any leading or
|
|---|
| 1067 | trailing
|
|---|
| 1068 | .Aq blanks .
|
|---|
| 1069 | .It Fl X
|
|---|
| 1070 | When traversing the file hierarchy specified by a pathname,
|
|---|
| 1071 | do not descend into directories that have a different device ID.
|
|---|
| 1072 | See the
|
|---|
| 1073 | .Li st_dev
|
|---|
| 1074 | field as described in
|
|---|
| 1075 | .Xr stat 2
|
|---|
| 1076 | for more information about device IDs.
|
|---|
| 1077 | .It Fl x Ar format
|
|---|
| 1078 | Specify the output archive format, with the default format being
|
|---|
| 1079 | .Cm ustar .
|
|---|
| 1080 | .Nm
|
|---|
| 1081 | currently supports the following formats:
|
|---|
| 1082 | .Bl -tag -width "sv4cpio"
|
|---|
| 1083 | .It Cm ar
|
|---|
| 1084 | The Unix Archiver library format.
|
|---|
| 1085 | This format matches APT repositories and the BSD
|
|---|
| 1086 | .Xr ar 1
|
|---|
| 1087 | specification, not GNU binutils (which can however read them) or SYSV systems.
|
|---|
| 1088 | See
|
|---|
| 1089 | .Xr ar 5
|
|---|
| 1090 | on some operating systems for more information.
|
|---|
| 1091 | .It Cm bcpio
|
|---|
| 1092 | The old binary cpio format.
|
|---|
| 1093 | The default blocksize for this format is 5120 bytes.
|
|---|
| 1094 | This format is not very portable and should not be used when other formats
|
|---|
| 1095 | are available.
|
|---|
| 1096 | Inode and device information about a file (used for detecting file hard links
|
|---|
| 1097 | by this format), which may be truncated by this format, is detected by
|
|---|
| 1098 | .Nm
|
|---|
| 1099 | and is repaired.
|
|---|
| 1100 | .It Cm cpio
|
|---|
| 1101 | The extended cpio interchange format specified in the
|
|---|
| 1102 | .St -p1003.2
|
|---|
| 1103 | standard.
|
|---|
| 1104 | The default blocksize for this format is 5120 bytes.
|
|---|
| 1105 | Inode and device information about a file (used for detecting file hard links
|
|---|
| 1106 | by this format), which may be truncated by this format, is detected by
|
|---|
| 1107 | .Nm
|
|---|
| 1108 | and is repaired.
|
|---|
| 1109 | .It Cm sv4cpio
|
|---|
| 1110 | The System V release 4 cpio.
|
|---|
| 1111 | The default blocksize for this format is 5120 bytes.
|
|---|
| 1112 | Inode and device information about a file (used for detecting file hard links
|
|---|
| 1113 | by this format), which may be truncated by this format, is detected by
|
|---|
| 1114 | .Nm
|
|---|
| 1115 | and is repaired.
|
|---|
| 1116 | .It Cm sv4crc
|
|---|
| 1117 | The System V release 4 cpio with file CRC checksums.
|
|---|
| 1118 | The default blocksize for this format is 5120 bytes.
|
|---|
| 1119 | Inode and device information about a file (used for detecting file hard links
|
|---|
| 1120 | by this format), which may be truncated by this format, is detected by
|
|---|
| 1121 | .Nm
|
|---|
| 1122 | and is repaired.
|
|---|
| 1123 | .It Cm tar
|
|---|
| 1124 | The old
|
|---|
| 1125 | .Bx
|
|---|
| 1126 | tar format as found in
|
|---|
| 1127 | .Bx 4.3 .
|
|---|
| 1128 | The default blocksize for this format is 10240 bytes.
|
|---|
| 1129 | Pathnames stored by this format must be 100 characters or less in length.
|
|---|
| 1130 | Only
|
|---|
| 1131 | .Em regular
|
|---|
| 1132 | files,
|
|---|
| 1133 | .Em hard links , soft links ,
|
|---|
| 1134 | and
|
|---|
| 1135 | .Em directories
|
|---|
| 1136 | will be archived (other file system types are not supported).
|
|---|
| 1137 | For backwards compatibility with even older tar formats, a
|
|---|
| 1138 | .Fl o
|
|---|
| 1139 | option can be used when writing an archive to omit the storage of directories.
|
|---|
| 1140 | This option takes the form:
|
|---|
| 1141 | .Pp
|
|---|
| 1142 | .Dl Fl o Cm write_opt=nodir
|
|---|
| 1143 | .It Cm ustar
|
|---|
| 1144 | The extended tar interchange format specified in the
|
|---|
| 1145 | .St -p1003.2
|
|---|
| 1146 | standard.
|
|---|
| 1147 | The default blocksize for this format is 10240 bytes.
|
|---|
| 1148 | Filenames stored by this format must be 100 characters or less in length;
|
|---|
| 1149 | the total pathname must be 256 characters or less.
|
|---|
| 1150 | .El
|
|---|
| 1151 | .Pp
|
|---|
| 1152 | .Nm
|
|---|
| 1153 | will detect and report any file that it is unable to store or extract
|
|---|
| 1154 | as the result of any specific archive format restrictions.
|
|---|
| 1155 | The individual archive formats may impose additional restrictions on use.
|
|---|
| 1156 | Typical archive format restrictions include (but are not limited to):
|
|---|
| 1157 | file pathname length, file size, link pathname length, and the type of the
|
|---|
| 1158 | file.
|
|---|
| 1159 | .It Fl Y
|
|---|
| 1160 | This option is the same as the
|
|---|
| 1161 | .Fl D
|
|---|
| 1162 | option, except that the inode change time is checked using the
|
|---|
| 1163 | pathname created after all the file name modifications have completed.
|
|---|
| 1164 | .It Fl Z
|
|---|
| 1165 | This option is the same as the
|
|---|
| 1166 | .Fl u
|
|---|
| 1167 | option, except that the modification time is checked using the
|
|---|
| 1168 | pathname created after all the file name modifications have completed.
|
|---|
| 1169 | .It Fl z
|
|---|
| 1170 | Use the
|
|---|
| 1171 | .Xr gzip 1
|
|---|
| 1172 | utility to compress (decompress) the archive while writing (reading).
|
|---|
| 1173 | Incompatible with
|
|---|
| 1174 | .Fl a .
|
|---|
| 1175 | .El
|
|---|
| 1176 | .Pp
|
|---|
| 1177 | The options that operate on the names of files or archive members
|
|---|
| 1178 | .Po Fl c ,
|
|---|
| 1179 | .Fl i ,
|
|---|
| 1180 | .Fl n ,
|
|---|
| 1181 | .Fl s ,
|
|---|
| 1182 | .Fl u ,
|
|---|
| 1183 | .Fl v ,
|
|---|
| 1184 | .Fl D ,
|
|---|
| 1185 | .Fl G ,
|
|---|
| 1186 | .Fl T ,
|
|---|
| 1187 | .Fl U ,
|
|---|
| 1188 | .Fl Y ,
|
|---|
| 1189 | and
|
|---|
| 1190 | .Fl Z
|
|---|
| 1191 | .Pc
|
|---|
| 1192 | interact as follows.
|
|---|
| 1193 | .Pp
|
|---|
| 1194 | When extracting files during a
|
|---|
| 1195 | .Em read
|
|---|
| 1196 | operation, archive members are
|
|---|
| 1197 | .Sq selected ,
|
|---|
| 1198 | based only on the user specified pattern operands as modified by the
|
|---|
| 1199 | .Fl c ,
|
|---|
| 1200 | .Fl n ,
|
|---|
| 1201 | .Fl u ,
|
|---|
| 1202 | .Fl D ,
|
|---|
| 1203 | .Fl G ,
|
|---|
| 1204 | .Fl T ,
|
|---|
| 1205 | .Fl U
|
|---|
| 1206 | options.
|
|---|
| 1207 | Then any
|
|---|
| 1208 | .Fl s
|
|---|
| 1209 | and
|
|---|
| 1210 | .Fl i
|
|---|
| 1211 | options will modify in that order, the names of these selected files.
|
|---|
| 1212 | Then the
|
|---|
| 1213 | .Fl Y
|
|---|
| 1214 | and
|
|---|
| 1215 | .Fl Z
|
|---|
| 1216 | options will be applied based on the final pathname.
|
|---|
| 1217 | Finally, the
|
|---|
| 1218 | .Fl v
|
|---|
| 1219 | option will write the names resulting from these modifications.
|
|---|
| 1220 | .Pp
|
|---|
| 1221 | When archiving files during a
|
|---|
| 1222 | .Em write
|
|---|
| 1223 | operation, or copying files during a
|
|---|
| 1224 | .Em copy
|
|---|
| 1225 | operation, archive members are
|
|---|
| 1226 | .Sq selected ,
|
|---|
| 1227 | based only on the user specified pathnames as modified by the
|
|---|
| 1228 | .Fl n ,
|
|---|
| 1229 | .Fl u ,
|
|---|
| 1230 | .Fl D ,
|
|---|
| 1231 | .Fl G ,
|
|---|
| 1232 | .Fl T ,
|
|---|
| 1233 | and
|
|---|
| 1234 | .Fl U
|
|---|
| 1235 | options (the
|
|---|
| 1236 | .Fl D
|
|---|
| 1237 | option only applies during a copy operation).
|
|---|
| 1238 | Then any
|
|---|
| 1239 | .Fl s
|
|---|
| 1240 | and
|
|---|
| 1241 | .Fl i
|
|---|
| 1242 | options will modify in that order, the names of these selected files.
|
|---|
| 1243 | Then during a
|
|---|
| 1244 | .Em copy
|
|---|
| 1245 | operation the
|
|---|
| 1246 | .Fl Y
|
|---|
| 1247 | and the
|
|---|
| 1248 | .Fl Z
|
|---|
| 1249 | options will be applied based on the final pathname.
|
|---|
| 1250 | Finally, the
|
|---|
| 1251 | .Fl v
|
|---|
| 1252 | option will write the names resulting from these modifications.
|
|---|
| 1253 | .Pp
|
|---|
| 1254 | When one or both of the
|
|---|
| 1255 | .Fl u
|
|---|
| 1256 | or
|
|---|
| 1257 | .Fl D
|
|---|
| 1258 | options are specified along with the
|
|---|
| 1259 | .Fl n
|
|---|
| 1260 | option, a file is not considered selected unless it is newer
|
|---|
| 1261 | than the file to which it is compared.
|
|---|
| 1262 | .Sh ENVIRONMENT
|
|---|
| 1263 | .Bl -tag -width Fl
|
|---|
| 1264 | .It Ev TMPDIR
|
|---|
| 1265 | Path in which to store temporary files.
|
|---|
| 1266 | .El
|
|---|
| 1267 | .Sh EXIT STATUS
|
|---|
| 1268 | The
|
|---|
| 1269 | .Nm
|
|---|
| 1270 | utility exits with one of the following values:
|
|---|
| 1271 | .Pp
|
|---|
| 1272 | .Bl -tag -width Ds -offset indent -compact
|
|---|
| 1273 | .It 0
|
|---|
| 1274 | All files were processed successfully.
|
|---|
| 1275 | .It 1
|
|---|
| 1276 | An error occurred.
|
|---|
| 1277 | .El
|
|---|
| 1278 | .Sh EXAMPLES
|
|---|
| 1279 | Copy the contents of the current directory to the device
|
|---|
| 1280 | .Pa /dev/rst0 :
|
|---|
| 1281 | .Pp
|
|---|
| 1282 | .Dl $ \*(nm \-w \-f /dev/rst0 \&.
|
|---|
| 1283 | .Pp
|
|---|
| 1284 | Give the verbose table of contents for an archive stored in
|
|---|
| 1285 | .Pa filename :
|
|---|
| 1286 | .Pp
|
|---|
| 1287 | .Dl $ \*(nm \-v \-f filename
|
|---|
| 1288 | .Pp
|
|---|
| 1289 | This sequence of commands will copy the entire
|
|---|
| 1290 | .Pa olddir
|
|---|
| 1291 | directory hierarchy to
|
|---|
| 1292 | .Pa newdir :
|
|---|
| 1293 | .Bd -literal -offset indent
|
|---|
| 1294 | $ mkdir newdir
|
|---|
| 1295 | $ cd olddir
|
|---|
| 1296 | $ \*(nm \-rw . ../newdir
|
|---|
| 1297 | .Ed
|
|---|
| 1298 | .Pp
|
|---|
| 1299 | Extract files from the archive
|
|---|
| 1300 | .Pa a.pax .
|
|---|
| 1301 | Files rooted in
|
|---|
| 1302 | .Pa /usr
|
|---|
| 1303 | are extracted relative to the current working directory;
|
|---|
| 1304 | all other files are extracted to their unmodified path.
|
|---|
| 1305 | .Pp
|
|---|
| 1306 | .Dl $ \*(nm \-r \-s \*(aq,\*(ha/usr/,,\*(aq \-f a.pax
|
|---|
| 1307 | .Pp
|
|---|
| 1308 | This can be used to interactively select the files to copy from the
|
|---|
| 1309 | current directory to
|
|---|
| 1310 | .Pa dest_dir :
|
|---|
| 1311 | .Pp
|
|---|
| 1312 | .Dl $ \*(nm \-rw \-i \&. dest_dir
|
|---|
| 1313 | .Pp
|
|---|
| 1314 | Extract all files from the archive
|
|---|
| 1315 | .Pa a.pax
|
|---|
| 1316 | which are owned by
|
|---|
| 1317 | .Em root
|
|---|
| 1318 | with group
|
|---|
| 1319 | .Em bin
|
|---|
| 1320 | and preserve all file permissions:
|
|---|
| 1321 | .Pp
|
|---|
| 1322 | .Dl "$ \*(nm \-r \-pe \-U root \-G bin \-f a.pax"
|
|---|
| 1323 | .Pp
|
|---|
| 1324 | Update (and list) only those files in the destination directory
|
|---|
| 1325 | .Pa /backup
|
|---|
| 1326 | which are older (less recent inode change or file modification times) than
|
|---|
| 1327 | files with the same name found in the source file tree
|
|---|
| 1328 | .Pa home :
|
|---|
| 1329 | .Pp
|
|---|
| 1330 | .Dl "$ \*(nm \-r \-w \-v \-Y \-Z home /backup"
|
|---|
| 1331 | .Sh DIAGNOSTICS
|
|---|
| 1332 | Whenever
|
|---|
| 1333 | .Nm
|
|---|
| 1334 | cannot create a file or a link when reading an archive or cannot
|
|---|
| 1335 | find a file when writing an archive, or cannot preserve the user ID,
|
|---|
| 1336 | group ID, or file mode when the
|
|---|
| 1337 | .Fl p
|
|---|
| 1338 | option is specified, a diagnostic message is written to standard error
|
|---|
| 1339 | and a non-zero exit status will be returned, but processing will continue.
|
|---|
| 1340 | In the case where
|
|---|
| 1341 | .Nm
|
|---|
| 1342 | cannot create a link to a file,
|
|---|
| 1343 | unless
|
|---|
| 1344 | .Fl M Ar lncp
|
|---|
| 1345 | is given,
|
|---|
| 1346 | .Nm
|
|---|
| 1347 | will not create a second copy of the file.
|
|---|
| 1348 | .Pp
|
|---|
| 1349 | If the extraction of a file from an archive is prematurely terminated by
|
|---|
| 1350 | a signal or error,
|
|---|
| 1351 | .Nm
|
|---|
| 1352 | may have only partially extracted a file the user wanted.
|
|---|
| 1353 | Additionally, the file modes of extracted files and directories
|
|---|
| 1354 | may have incorrect file bits, and the modification and access times may be
|
|---|
| 1355 | wrong.
|
|---|
| 1356 | .Pp
|
|---|
| 1357 | If the creation of an archive is prematurely terminated by a signal or error,
|
|---|
| 1358 | .Nm
|
|---|
| 1359 | may have only partially created the archive, which may violate the specific
|
|---|
| 1360 | archive format specification.
|
|---|
| 1361 | .Pp
|
|---|
| 1362 | If while doing a
|
|---|
| 1363 | .Em copy ,
|
|---|
| 1364 | .Nm
|
|---|
| 1365 | detects a file is about to overwrite itself, the file is not copied,
|
|---|
| 1366 | a diagnostic message is written to standard error
|
|---|
| 1367 | and when
|
|---|
| 1368 | .Nm
|
|---|
| 1369 | completes it will exit with a non-zero exit status.
|
|---|
| 1370 | .Sh SEE ALSO
|
|---|
| 1371 | .Xr ar 1 ,
|
|---|
| 1372 | .Xr cpio 1 ,
|
|---|
| 1373 | .if \ng==1 \{\
|
|---|
| 1374 | .Xr deb 5 ,
|
|---|
| 1375 | .Xr mircpio 1 ,
|
|---|
| 1376 | .Xr mirtar 1 ,
|
|---|
| 1377 | .Xr pax 1 ,
|
|---|
| 1378 | .\}
|
|---|
| 1379 | .if \ng==2 \{\
|
|---|
| 1380 | .Xr deb 5 ,
|
|---|
| 1381 | .Xr paxcpio 1 ,
|
|---|
| 1382 | .Xr paxtar 1 ,
|
|---|
| 1383 | .\}
|
|---|
| 1384 | .Xr tar 1
|
|---|
| 1385 | .Sh STANDARDS
|
|---|
| 1386 | The
|
|---|
| 1387 | .Nm
|
|---|
| 1388 | utility is compliant with the
|
|---|
| 1389 | IEEE Std 1003.1-2008
|
|---|
| 1390 | .Pq Dq Tn POSIX
|
|---|
| 1391 | specification.
|
|---|
| 1392 | .Pp
|
|---|
| 1393 | The flags
|
|---|
| 1394 | .Fl 0BDEGHJjLMOPTUYZz ,
|
|---|
| 1395 | the archive formats
|
|---|
| 1396 | .Em ar ,
|
|---|
| 1397 | .Em bcpio ,
|
|---|
| 1398 | .Em sv4cpio ,
|
|---|
| 1399 | .Em sv4crc ,
|
|---|
| 1400 | .Em tar ,
|
|---|
| 1401 | and the flawed archive handling during
|
|---|
| 1402 | .Em list
|
|---|
| 1403 | and
|
|---|
| 1404 | .Em read
|
|---|
| 1405 | operations
|
|---|
| 1406 | are extensions to that specification.
|
|---|
| 1407 | .Sh AUTHORS
|
|---|
| 1408 | Keith Muller at the University of California, San Diego.
|
|---|
| 1409 | .Pp
|
|---|
| 1410 | .Mx
|
|---|
| 1411 | extensions by
|
|---|
| 1412 | .An Thorsten Glaser Aq tg@mirbsd.org .
|
|---|