tar.1 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139
  1. .\" This file is part of GNU tar. -*- nroff -*-
  2. .\" Copyright 2013-2014 Free Software Foundation, Inc.
  3. .\"
  4. .\" GNU tar is free software; you can redistribute it and/or modify
  5. .\" it under the terms of the GNU General Public License as published by
  6. .\" the Free Software Foundation; either version 3 of the License, or
  7. .\" (at your option) any later version.
  8. .\"
  9. .\" GNU tar is distributed in the hope that it will be useful,
  10. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. .\" GNU General Public License for more details.
  13. .\"
  14. .\" You should have received a copy of the GNU General Public License
  15. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. .TH TAR 1 "January 28, 2014" "TAR" "GNU TAR Manual"
  17. .SH NAME
  18. tar \- an archiving utility
  19. .SH SYNOPSIS
  20. .SS Traditional usage
  21. \fBtar\fR {\fBA\fR|\fBc\fR|\fBd\fR|\fBr\fR|\fBt\fR|\fBu\fR|\fBx\fR}\
  22. [\fBGnSkUWOmpsMBiajJzZhPlRvwo\fR] [\fIARG\fR...]
  23. .SS UNIX-style usage
  24. .sp
  25. \fBtar\fR \fB\-A\fR [\fIOPTIONS\fR] \fIARCHIVE\fR \fIARCHIVE\fR
  26. .sp
  27. \fBtar\fR \fB\-c\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  28. .sp
  29. \fBtar\fR \fB\-d\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  30. .sp
  31. \fBtar\fR \fB\-t\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
  32. .sp
  33. \fBtar\fR \fB\-r\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  34. .sp
  35. \fBtar\fR \fB\-u\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  36. .sp
  37. \fBtar\fR \fB\-x\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
  38. .SS GNU-style usage
  39. .sp
  40. \fBtar\fR {\fB\-\-catenate\fR|\fB\-\-concatenate} [\fIOPTIONS\fR] \fIARCHIVE\fR \fIARCHIVE\fR
  41. .sp
  42. \fBtar\fR \fB\-\-create\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  43. .sp
  44. \fBtar\fR {\fB\-\-diff\fR|\fB\-\-compare\fR} [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  45. .sp
  46. \fBtar\fR \fB\-\-delete\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
  47. .sp
  48. \fBtar\fR \fB\-\-append\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  49. .sp
  50. \fBtar\fR \fB\-\-list\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
  51. .sp
  52. \fBtar\fR \fB\-\-test\-label\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fILABEL\fR...]
  53. .sp
  54. \fBtar\fR \fB\-\-update\fR [\fB\-\-file\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  55. .sp
  56. \fBtar\fR \fB\-\-update\fR [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIFILE\fR...]
  57. .sp
  58. \fBtar\fR {\fB\-\-extract\fR|\fB\-\-get\fR} [\fB\-f\fR \fIARCHIVE\fR] [\fIOPTIONS\fR] [\fIMEMBER\fR...]
  59. .SH NOTE
  60. This manpage is a short description of GNU \fBtar\fR. For a detailed
  61. discussion, including examples and usage recommendations, refer to the
  62. \fBGNU Tar Manual\fR available in texinfo format. If the \fBinfo\fR
  63. reader and the tar documentation are properly installed on your
  64. system, the command
  65. .PP
  66. .RS +4
  67. .B info tar
  68. .RE
  69. .PP
  70. should give you access to the complete manual.
  71. .PP
  72. You can also view the manual using the info mode in
  73. .BR emacs (1),
  74. or find it in various formats online at
  75. .PP
  76. .RS +4
  77. .B http://www.gnu.org/software/tar/manual
  78. .RE
  79. .PP
  80. If any discrepancies occur between this manpage and the
  81. \fBGNU Tar Manual\fR, the later shall be considered the authoritative
  82. source.
  83. .SH DESCRIPTION
  84. GNU
  85. .B tar
  86. is an archiving program designed to store multiple files in a single
  87. file (an \fBarchive\fR), and to manipulate such archives. The archive
  88. can be either a regular file or a device (e.g. a tape drive, hence the name
  89. of the program, which stands for \fBt\fRape \fBar\fRchiver), which can
  90. be located either on the local or on a remote machine.
  91. .PP
  92. .SS Option styles
  93. Options to GNU \fBtar\fR can be given in three different styles.
  94. In
  95. .BR "traditional style" ,
  96. the first argument is a cluster of option letters and all subsequent
  97. arguments supply arguments to those options that require them. The
  98. arguments are read in the same order as the option letters. Any
  99. command line words that remain after all options has been processed
  100. are treated as non-optional arguments: file or archive member names.
  101. .PP
  102. For example, the \fBc\fR option requires creating the archive, the
  103. \fBv\fR option requests the verbose operation, and the \fBf\fR option
  104. takes an argument that sets the name of the archive to operate upon.
  105. The following command, written in the traditional style, instructs tar
  106. to store all files from the directory
  107. .B /etc
  108. into the archive file
  109. .B etc.tar
  110. verbosely listing the files being archived:
  111. .PP
  112. .EX
  113. .B tar cfv a.tar /etc
  114. .EE
  115. .PP
  116. In
  117. .BR "UNIX " or " short-option style" ,
  118. each option letter is prefixed with a single dash, as in other command
  119. line utilities. If an option takes argument, the argument follows it,
  120. either as a separate command line word, or immediately following the
  121. option. However, if the option takes an \fBoptional\fR argument, the
  122. argument must follow the option letter without any intervening
  123. whitespace, as in \fB\-g/tmp/snar.db\fR.
  124. .PP
  125. Any number of options not taking arguments can be
  126. clustered together after a single dash, e.g. \fB\-vkp\fR. Options
  127. that take arguments (whether mandatory or optional), can appear at
  128. the end of such a cluster, e.g. \fB\-vkpf a.tar\fR.
  129. .PP
  130. The example command above written in the
  131. .B short-option style
  132. could look like:
  133. .PP
  134. .EX
  135. .B tar -cvf a.tar /etc
  136. or
  137. .B tar -c -v -f a.tar /etc
  138. .EE
  139. .PP
  140. In
  141. .BR "GNU " or " long-option style" ,
  142. each option begins with two dashes and has a meaningful name,
  143. consisting of lower-case letters and dashes. When used, the long
  144. option can be abbreviated to its initial letters, provided that
  145. this does not create ambiguity. Arguments to long options are
  146. supplied either as a separate command line word, immediately following
  147. the option, or separated from the option by an equals sign with no
  148. intervening whitespace. Optional arguments must always use the latter
  149. method.
  150. .PP
  151. Here are several ways of writing the example command in this style:
  152. .PP
  153. .EX
  154. .B tar --create --file a.tar --verbose /etc
  155. .EE
  156. or (abbreviating some options):
  157. .EX
  158. .B tar --cre --file=a.tar --verb /etc
  159. .EE
  160. .PP
  161. The options in all three styles can be intermixed, although doing so
  162. with old options is not encouraged.
  163. .SS Operation mode
  164. The options listed in the table below tell GNU \fBtar\fR what
  165. operation it is to perform. Exactly one of them must be given.
  166. Meaning of non-optional arguments depends on the operation mode
  167. requested.
  168. .TP
  169. \fB\-A\fR, \fB\-\-catenate\fR, \fB\-\-concatenate\fR
  170. Append archive to the end of another archive. The arguments are
  171. treated as the names of archives to append. All archives must be of
  172. the same format as the archive they are appended to, otherwise the
  173. resulting archive might be unusable with non-GNU implementations of
  174. \fBtar\fR. Notice also that when more than one archive is given, the
  175. members from archives other than the first one will be accessible in
  176. the resulting archive only if using the \fB\-i\fR
  177. (\fB\-\-ignore\-zeros) option.
  178. Compressed archives cannot be concatenated.
  179. .TP
  180. \fB\-c\fR, \fB\-\-create\fR
  181. Create a new archive. Arguments supply the names of the files to be
  182. archived. Directories are archived recursively, unless the
  183. \fB\-\-no\-recursion\fR option is given.
  184. .TP
  185. \fB\-d\fR, \fB\-\-diff\fR, \fB\-\-compare\fR
  186. Find differences between archive and file system. The arguments are
  187. optional and specify archive members to compare. If not given, the
  188. current working directory is assumed.
  189. .TP
  190. \fB\-\-delete\fR
  191. Delete from the archive. The arguments supply names of the archive
  192. members to be removed. At least one argument must be given.
  193. This option does not operate on compressed archives. There is no
  194. short option equivalent.
  195. .TP
  196. \fB\-r\fR, \fB\-\-append\fR
  197. Append files to the end of an archive. Arguments have the same
  198. meaning as for \fB\-c\fR (\fB\-\-create).
  199. .TP
  200. \fB\-t\fR, \fB\-\-list\fR
  201. List the contents of an archive. Arguments are optional. When given,
  202. they specify the names of the members to list.
  203. .TP
  204. \fB\-\-test\-label
  205. Test the archive volume label and exit. When used without arguments,
  206. it prints the volume label (if any) and exits with status \fB0\fR.
  207. When one or more command line arguments are given.
  208. .B tar
  209. compares the volume label with each argument. It exits with code
  210. \fB0\fR if a match is found, and with code \fB1\fR otherwise. No
  211. output is displayed, unless used together with the \fB\-v\fR
  212. (\fB\-\-verbose\fR) option.
  213. There is no short option equivalent for this option.
  214. .TP
  215. \fB\-u\fR, \fB\-\-update\fR
  216. Append files which are newer than the corresponding copy in the
  217. archive. Arguments have the same meaning as with \fB\-c\fR and
  218. \fB\-r\fR options.
  219. .TP
  220. \fB\-x\fR, \fB\-\-extract\fR, \fB\-\-get\fR
  221. Extract files from an archive. Arguments are optional. When given,
  222. they specify names of the archive members to be extracted.
  223. .TP
  224. .TP
  225. \fB\-\-show\-defaults\fR
  226. Show built-in defaults for various \fBtar\fR options and exit. No
  227. arguments are allowed.
  228. .TP
  229. \fB\-?\fR, \fB\-\-help
  230. Display a short option summary and exit. No arguments allowed.
  231. .TP
  232. \fB\-\-usage\fR
  233. Display a list of available options and exit. No arguments allowed.
  234. .TP
  235. \fB\-\-version\fR
  236. Print program version and copyright information and exit.
  237. .SH OPTIONS
  238. .SS Operation modifiers
  239. .TP
  240. \fB\-\-check\-device\fR
  241. Check device numbers when creating incremental archives (default).
  242. .TP
  243. \fB\-g\fR, \fB\-\-listed\-incremental\fR=\fIFILE\fR
  244. Handle new GNU-format incremental backups. \fIFILE\fR is the name of
  245. a \fBsnapshot file\fR, where tar stores additional information which
  246. is used to decide which files changed since the previous incremental
  247. dump and, consequently, must be dumped again. If \fIFILE\fR does not
  248. exist when creating an archive, it will be created and all files will
  249. be added to the resulting archive (the \fBlevel 0\fR dump). To create
  250. incremental archives of non-zero level \fBN\fR, create a copy of the
  251. snapshot file created during the level \fBN-1\fR, and use it as
  252. \fIFILE\fR.
  253. When listing or extracting, the actual contents of \fIFILE\fR is not
  254. inspected, it is needed only due to syntactical requirements. It is
  255. therefore common practice to use \fB/dev/null\fR in its place.
  256. .TP
  257. \fB\-G\fR, \fB\-\-incremental\fR
  258. Handle old GNU-format incremental backups.
  259. .TP
  260. \fB\-\-ignore\-failed\-read\fR
  261. Do not exit with nonzero on unreadable files.
  262. .TP
  263. \fB\-\-level\fR=\fINUMBER\fR
  264. Set dump level for created listed-incremental archive. Currently only
  265. \fB\-\-level=0\fR is meaningful: it instructs \fBtar\fR to truncate
  266. the snapshot file before dumping, thereby forcing a level 0 dump.
  267. .TP
  268. \fB\-n\fR, \fB\-\-seek\fR
  269. Assume the archive is seekable. Normally \fBtar\fR determines
  270. automatically whether the archive can be seeked or not. This option
  271. is intended for use in cases when such recognition fails. It takes
  272. effect only if the archive is open for reading (e.g. with
  273. .B \-\-list
  274. or
  275. .B \-\-extract
  276. options).
  277. .TP
  278. \fB\-\-no\-check\-device\fR
  279. Do not check device numbers when creating incremental archives.
  280. .TP
  281. \fB\-\-no\-seek\fR
  282. Assume the archive is not seekable.
  283. .TP
  284. \fB\-\-occurrence\fR[=\fIN\fR]
  285. Process only the \fIN\fRth occurrence of each file in the
  286. archive. This option is valid only when used with one of the
  287. following subcommands: \fB\-\-delete\fR, \fB\-\-diff\fR,
  288. \fB\-\-extract\fR or \fB\-\-list\fR and when a list of files is given
  289. either on the command line or via the \fB\-\fRT option. The default
  290. \fIN\fR is \fB1\fR.
  291. .TP
  292. \fB\-\-restrict\fR
  293. Disable the use of some potentially harmful options.
  294. .TP
  295. \fB\-\-sparse\-version\fR=\fIMAJOR\fR[.\fIMINOR\fR]
  296. Set version of the sparse format to use (implies \fB\-\-sparse\fR).
  297. This option implies
  298. .BR \-\-sparse .
  299. Valid argument values are
  300. .BR 0.0 ,
  301. .BR 0.1 ", and"
  302. .BR 1.0 .
  303. For a detailed discussion of sparse formats, refer to the \fBGNU Tar
  304. Manual\fR, appendix \fBD\fR, "\fBSparse Formats\fR". Using \fBinfo\fR
  305. reader, it can be accessed running the following command:
  306. .BR "info tar 'Sparse Formats'" .
  307. .TP
  308. \fB\-S\fR, \fB\-\-sparse\fR
  309. Handle sparse files efficiently. Some files in the file system may
  310. have segments which were actually never written (quite often these are
  311. database files created by such systems as \fBDBM\fR). When given this
  312. option, \fBtar\fR attempts to determine if the file is sparse prior to
  313. archiving it, and if so, to reduce the resulting archive size by not
  314. dumping empty parts of the file.
  315. .SS Overwrite control
  316. These options control \fBtar\fR actions when extracting a file over
  317. an existing copy on disk.
  318. .TP
  319. \fB\-k\fR, \fB\-\-keep\-old\-files\fR
  320. Don't replace existing files when extracting.
  321. .TP
  322. \fB\-\-keep\-newer\-files\fR
  323. Don't replace existing files that are newer than their archive copies.
  324. .TP
  325. \fB\-\-no\-overwrite\-dir\fR
  326. Preserve metadata of existing directories.
  327. .TP
  328. \fB\-\-one\-top\-level\fR[\fB=\fIDIR\fR]
  329. Extract all files into \fIDIR\fR, or, if used without argument, into a
  330. subdirectory named by the base name of the archive (minus standard
  331. compression suffixes recognizable by \fB\-\-auto\-compress).
  332. .TP
  333. \fB\-\-overwrite\fR
  334. Overwrite existing files when extracting.
  335. .TP
  336. \fB\-\-overwrite\-dir\fR
  337. Overwrite metadata of existing directories when extracting (default).
  338. .TP
  339. \fB\-\-recursive\-unlink\fR
  340. Recursively remove all files in the directory prior to extracting it.
  341. .TP
  342. \fB\-\-remove\-files\fR
  343. Remove files from disk after adding them to the archive.
  344. .TP
  345. \fB\-U\fR, \fB\-\-unlink\-first\fR
  346. Remove each file prior to extracting over it.
  347. .TP
  348. \fB\-W\fR, \fB\-\-verify\fR
  349. Verify the archive after writing it.
  350. .SS Output stream selection
  351. .TP
  352. \fB\-\-ignore\-command\-error\fR
  353. .TP
  354. Ignore subprocess exit codes.
  355. .TP
  356. \fB\-\-no\-ignore\-command\-error\fR
  357. Treat non-zero exit codes of children as error (default).
  358. .TP
  359. \fB\-O\fR, \fB\-\-to\-stdout\fR
  360. Extract files to standard output.
  361. .TP
  362. \fB\-\-to\-command\fR=\fICOMMAND\fR
  363. Pipe extracted files to \fICOMMAND\fR. The argument is the pathname
  364. of an external program, optionally with command line arguments. The
  365. program will be invoked and the contents of the file being extracted
  366. supplied to it on its standard output. Additional data will be
  367. supplied via the following environment variables:
  368. .RS
  369. .TP
  370. .B TAR_FILETYPE
  371. Type of the file. It is a single letter with the following meaning:
  372. .sp
  373. .nf
  374. .ta 8n 20n
  375. f Regular file
  376. d Directory
  377. l Symbolic link
  378. h Hard link
  379. b Block device
  380. c Character device
  381. .fi
  382. Currently only regular files are supported.
  383. .TP
  384. .B TAR_MODE
  385. File mode, an octal number.
  386. .TP
  387. .B TAR_FILENAME
  388. The name of the file.
  389. .TP
  390. .B TAR_REALNAME
  391. Name of the file as stored in the archive.
  392. .TP
  393. .B TAR_UNAME
  394. Name of the file owner.
  395. .TP
  396. .B TAR_GNAME
  397. Name of the file owner group.
  398. .TP
  399. .B TAR_ATIME
  400. Time of last access. It is a decimal number, representing seconds
  401. since the Epoch. If the archive provides times with nanosecond
  402. precision, the nanoseconds are appended to the timestamp after a
  403. decimal point.
  404. .TP
  405. .B TAR_MTIME
  406. Time of last modification.
  407. .TP
  408. .B TAR_CTIME
  409. Time of last status change.
  410. .TP
  411. .B TAR_SIZE
  412. Size of the file.
  413. .TP
  414. .B TAR_UID
  415. UID of the file owner.
  416. .TP
  417. .B TAR_GID
  418. GID of the file owner.
  419. .RE
  420. .RS
  421. Additionally, the following variables contain information about
  422. \fBtar\fR operation mode and the archive being processed:
  423. .TP
  424. .B TAR_VERSION
  425. GNU \fBtar\fR version number.
  426. .TP
  427. .B TAR_ARCHIVE
  428. The name of the archive \fBtar\fR is processing.
  429. .TP
  430. .B TAR_BLOCKING_FACTOR
  431. Current blocking factor, i.e. number of 512-byte blocks in a record.
  432. .TP
  433. .B TAR_VOLUME
  434. Ordinal number of the volume \fBtar\fR is processing (set if
  435. reading a multi-volume archive).
  436. .TP
  437. .B TAR_FORMAT
  438. Format of the archive being processed. One of:
  439. .BR gnu ,
  440. .BR oldgnu ,
  441. .BR posix ,
  442. .BR ustar ,
  443. .BR v7 .
  444. .B TAR_SUBCOMMAND
  445. A short option (with a leading dash) describing the operation \fBtar\fR is
  446. executing.
  447. .RE
  448. .SS Handling of file attributes
  449. .TP
  450. \fB\-\-atime\-preserve\fR[=\fIMETHOD\fR]
  451. Preserve access times on dumped files, either by restoring the times
  452. after reading (\fIMETHOD\fR=\fBreplace\fR, this is the default) or by
  453. not setting the times in the first place (\fIMETHOD\fR=\fBsystem\fR)
  454. .TP
  455. \fB\-\-delay\-directory\-restore\fR
  456. Delay setting modification times and permissions of extracted
  457. directories until the end of extraction. Use this option when
  458. extracting from an archive which has unusual member ordering.
  459. .TP
  460. \fB\-\-group\fR=\fINAME\fR
  461. Force \fINAME\fR as group for added files.
  462. .TP
  463. \fB\-\-mode\fR=\fICHANGES\fR
  464. Force symbolic mode \fICHANGES\fR for added files.
  465. .TP
  466. \fB\-\-mtime\fR=\fIDATE-OR-FILE\fR
  467. Set mtime for added files. \fIDATE-OR-FILE\fR is either a date/time
  468. in almost arbitrary formate, or the name of an existing file. In the
  469. latter case the mtime of that file will be used.
  470. .TP
  471. \fB\-m\fR, \fB\-\-touch\fR
  472. Don't extract file modified time.
  473. .TP
  474. \fB\-\-no\-delay\-directory\-restore\fR
  475. Cancel the effect of the prior \fB\-\-delay\-directory\-restore\fR option.
  476. .TP
  477. \fB\-\-no\-same\-owner\fR
  478. Extract files as yourself (default for ordinary users).
  479. .TP
  480. \fB\-\-no\-same\-permissions\fR
  481. Apply the user's umask when extracting permissions from the archive
  482. (default for ordinary users).
  483. .TP
  484. \fB\-\-numeric\-owner\fR
  485. Always use numbers for user/group names.
  486. .TP
  487. \fB\-\-owner\fR=\fINAME\fR
  488. Force \fINAME\fR as owner for added files.
  489. .TP
  490. \fB\-p\fR, \fB\-\-preserve\-permissions\fR, \fB\-\-same\-permissions\fR
  491. extract information about file permissions (default for superuser)
  492. .TP
  493. \fB\-\-preserve\fR
  494. Same as both \fB\-p\fR and \fB\-s\fR.
  495. .TP
  496. \fB\-\-same\-owner\fR
  497. Try extracting files with the same ownership as exists in the archive
  498. (default for superuser).
  499. .TP
  500. \fB\-s\fR, \fB\-\-preserve\-order\fR, \fB\-\-same\-order\fR
  501. Sort names to extract to match archive
  502. .SS Device selection and switching
  503. .TP
  504. \fB\-f\fR, \fB\-\-file\fR=\fIARCHIVE\fR
  505. Use archive file or device \fIARCHIVE\fR. If this option is not
  506. given, \fBtar\fR will first examine the environment variable `TAPE'.
  507. If it is set, its value will be used as the archive name. Otherwise,
  508. \fBtar\fR will assume the compiled-in default. The default
  509. value can be inspected either using the
  510. .B \-\-show\-defaults
  511. option, or at the end of the \fBtar \-\-help\fR output.
  512. An archive name that has a colon in it specifies a file or device on a
  513. remote machine. The part before the colon is taken as the machine
  514. name or IP address, and the part after it as the file or device
  515. pathname, e.g.:
  516. .EX
  517. --file=remotehost:/dev/sr0
  518. .EE
  519. An optional username can be prefixed to the hostname, placing a \fB@\fR
  520. sign between them.
  521. By default, the remote host is accessed via the
  522. .BR rsh (1)
  523. command. Nowadays it is common to use
  524. .BR ssh (1)
  525. instead. You can do so by giving the following command line option:
  526. .EX
  527. --rsh-command=/usr/bin/ssh
  528. .EE
  529. The remote mashine should have the
  530. .BR rmt (8)
  531. command installed. If its pathname does not match \fBtar\fR's
  532. default, you can inform \fBtar\fR about the correct pathname using the
  533. .B \-\-rmt\-command
  534. option.
  535. .TP
  536. \fB\-\-force\-local\fR
  537. Archive file is local even if it has a colon.
  538. .TP
  539. \fB\-\fRF, \fB\-\-info\-script\fR=\fICOMMAND\fR, \fB\-\-new\-volume\-script\fR=\fICOMMAND\fR
  540. Run \fICOMMAND\fR at the end of each tape (implies \fB\-M\fR). The
  541. command can include arguments. When started, it will inherit \fBtar\fR's
  542. environment plus the following variables:
  543. .RS
  544. .TP
  545. .B TAR_VERSION
  546. GNU \fBtar\fR version number.
  547. .TP
  548. .B TAR_ARCHIVE
  549. The name of the archive \fBtar\fR is processing.
  550. .TP
  551. .B TAR_BLOCKING_FACTOR
  552. Current blocking factor, i.e. number of 512-byte blocks in a record.
  553. .TP
  554. .B TAR_VOLUME
  555. Ordinal number of the volume \fBtar\fR is processing (set if
  556. reading a multi-volume archive).
  557. .TP
  558. .B TAR_FORMAT
  559. Format of the archive being processed. One of:
  560. .BR gnu ,
  561. .BR oldgnu ,
  562. .BR posix ,
  563. .BR ustar ,
  564. .BR v7 .
  565. .TP
  566. .B TAR_SUBCOMMAND
  567. A short option (with a leading dash) describing the operation \fBtar\fR is
  568. executing.
  569. .TP
  570. .B TAR_FD
  571. File descriptor which can be used to communicate the new volume name
  572. to
  573. .BR tar .
  574. .RE
  575. .RS
  576. If the info script fails, \fBtar\fR exits; otherwise, it begins writing
  577. the next volume.
  578. .RE
  579. .TP
  580. \fB\-L\fR, \fB\-\-tape\-length\fR=\fN\fR
  581. Change tape after writing \fIN\fRx1024 bytes. If \fIN\fR is followed
  582. by a size suffix (see the subsection
  583. .B Size suffixes
  584. below), the suffix specifies the multiplicative factor to be used
  585. instead of 1024.
  586. This option implies
  587. .BR \-M .
  588. .TP
  589. \fB\-M\fR, \fB\-\-multi\-volume\fR
  590. Create/list/extract multi-volume archive.
  591. .TP
  592. \fB\-\-rmt\-command\fR=\fICOMMAND\fR
  593. Use \fICOMMAND\fR instead of \fBrmt\fR when accessing remote
  594. archives. See the description of the
  595. .B \-f
  596. option, above.
  597. .TP
  598. \fB\-\-rsh\-command\fR=\fICOMMAND\fR
  599. Use \fICOMMAND\fR instead of \fBrsh\fR when accessing remote
  600. archives. See the description of the
  601. .B \-f
  602. option, above.
  603. .TP
  604. \fB\-\-volno\-file\fR=\fIFILE\fR
  605. When this option is used in conjunction with
  606. .BR \-\-multi\-volume ,
  607. .B tar
  608. will keep track of which volume of a multi-volume archive it is
  609. working in \fIFILE\fR.
  610. .SS Device blocking
  611. .TP
  612. \fB\-b\fR, \fB\-\-blocking\-factor\fR=\fIBLOCKS\fR
  613. Set record size to \fIBLOCKS\fRx\fB512\fR bytes.
  614. .TP
  615. \fB\-B\fR, \fB\-\-read\-full\-records\fR
  616. When listing or extracting, accept incomplete input records after
  617. end-of-file marker.
  618. .TP
  619. \fB\-i\fR, \fB\-\-ignore\-zeros\fR
  620. Ignore zeroed blocks in archive. Normally two consecutive 512-blocks
  621. filled with zeroes mean EOF and tar stops reading after encountering
  622. them. This option instructs it to read further and is useful when
  623. reading archives created with the \fB\-A\fR option.
  624. .TP
  625. \fB\-\-record\-size\fR=\fINUMBER\fR
  626. Set record size. \fINUMBER\fR is the number of bytes per record. It
  627. must be multiple of \fB512\fR. It can can be suffixed with a \fBsize
  628. suffix\fR, e.g. \fB\-\-record-size=10K\fR, for 10 Kilobytes. See the
  629. subsection
  630. .BR "Size suffixes" ,
  631. for a list of valid suffixes.
  632. .SS Archive format selection
  633. .TP
  634. \fB\-H\fR, \fB\-\-format\fR=\fIFORMAT\fR
  635. Create archive of the given format. Valid formats are:
  636. .RS
  637. .TP
  638. .B gnu
  639. GNU tar 1.13.x format
  640. .TP
  641. .B oldgnu
  642. GNU format as per tar <= 1.12.
  643. .TP
  644. \fBpax\fR, \fBposix\fR
  645. POSIX 1003.1-2001 (pax) format.
  646. .TP
  647. .B ustar
  648. POSIX 1003.1-1988 (ustar) format.
  649. .TP
  650. .B v7
  651. Old V7 tar format.
  652. .RE
  653. .TP
  654. \fB\-\-old\-archive\fR, \fB\-\-portability\fR
  655. Same as \fB\-\-format=v7\fR.
  656. .TP
  657. \fB\-\-pax\-option\fR=\fIkeyword\fR[[:]=\fIvalue\fR][,\fIkeyword\fR[[:]=\fIvalue\fR]]...
  658. Control pax keywords when creating \fBPAX\fR archives (\fB\-H
  659. pax\fR). This option is equivalent to the \fB\-o\fR option of the
  660. .BR pax (1) utility.
  661. .TP
  662. \fB\-\-posix\fR
  663. Same as \fB\-\-format=posix\fR.
  664. .TP
  665. \fB\-V\fR, \fB\-\-label\fR=\fITEXT\fR
  666. Create archive with volume name \fITEXT\fR. If listing or extracting,
  667. use \fITEXT\fR as a globbing pattern for volume name.
  668. .SS Compression options
  669. .TP
  670. \fB\-a\fR, \fB\-\-auto\-compress\fR
  671. Use archive suffix to determine the compression program.
  672. .TP
  673. \fB\-\fRI, \fB\-\-use\-compress\-program\fI=\fICOMMAND\fR
  674. Filter data through \fICOMMAND\fR. It must accept the \fB\-d\fR
  675. option, for decompression. The argument can contain command line
  676. options.
  677. .TP
  678. \fB\-j\fR, \fB\-\-bzip2\fR
  679. Filter the archive through
  680. .BR bzip2 (1).
  681. .TP
  682. \fB\-J\fR, \fB\-\-xz\fR
  683. Filter the archive through
  684. .BR xz (1).
  685. .TP
  686. \fB\-\-lzip\fR
  687. Filter the archive through
  688. .BR lzip (1).
  689. .TP
  690. \fB\-\-lzma\fR
  691. Filter the archive through
  692. .BR lzma (1).
  693. .TP
  694. \fB\-\-lzop\fR
  695. Filter the archive through
  696. .BR lzop (1).
  697. .TP
  698. \fB\-\-no\-auto\-compress\fR
  699. Do not use archive suffix to determine the compression program.
  700. .TP
  701. \fB\-z\fR, \fB\-\-gzip\fR, \fB\-\-gunzip\fR, \fB\-\-ungzip\fR
  702. Filter the archive through
  703. .BR gzip (1).
  704. .TP
  705. \fB\-\fRZ, \fB\-\-compress\fR, \fB\-\-uncompress\fR
  706. Filter the archive through
  707. .BR compress (1).
  708. .SS Local file selection
  709. .TP
  710. \fB\-\-add\-file\fR=\fIFILE\fR
  711. Add \fIFILE\fR to the archive (useful if its name starts with a dash).
  712. .TP
  713. \fB\-\-backup\fR[=\fICONTROL\fR]
  714. Backup before removal. The \fICONTROL\fR argument, if supplied,
  715. controls the backup policy. Its valid values are:
  716. .RS
  717. .TP
  718. .BR none ", " off
  719. Never make backups.
  720. .TP
  721. .BR t ", " numbered
  722. Make numbered backups.
  723. .TP
  724. .BR nil ", " existing
  725. Make numbered backups if numbered backups exist, simple backups otherwise.
  726. .TP
  727. .BR never ", " simple
  728. Always make simple backups
  729. .RS
  730. .RE
  731. If \fICONTROL\fR is not given, the value is taken from the
  732. .B VERSION_CONTROL
  733. environment variable. If it is not set, \fBexisting\fR is assumed.
  734. .RE
  735. .TP
  736. \fB\-C\fR, \fB\-\-directory\fR=\fIDIR\fR
  737. Change to directory DIR.
  738. .TP
  739. \fB\-\-exclude\fR=\fIPATTERN\fR
  740. Exclude files matching \fIPATTERN\fR, a
  741. .BR glob (3)-style
  742. wildcard pattern.
  743. .TP
  744. \fB\-\-exclude\-backups\fR
  745. Exclude backup and lock files.
  746. .TP
  747. \fB\-\-exclude\-caches\fR
  748. Exclude contents of directories containing file \fBCACHEDIR.TAG\fR,
  749. except for the tag file itself.
  750. .TP
  751. \fB\-\-exclude\-caches\-all\fR
  752. Exclude directories containing file \fBCACHEDIR.TAG\fR and the file itself.
  753. .TP
  754. \fB\-\-exclude\-caches\-under\fR
  755. Exclude everything under directories containing \fBCACHEDIR.TAG\fR
  756. .TP
  757. \fB\-\-exclude\-tag\fR=\fIFILE\fR
  758. Exclude contents of directories containing \fIFILE\fR, except for
  759. \fIFILE\fR itself.
  760. .TP
  761. \fB\-\-exclude\-tag\-all\fR=\fIFILE\fR
  762. Exclude directories containing \fIFILE\fR.
  763. .TP
  764. \fB\-\-exclude\-tag\-under\fR=\fIFILE\fR
  765. Exclude everything under directories containing \fIFILE\fR.
  766. .TP
  767. \fB\-\-exclude\-vcs\fR
  768. Exclude version control system directories.
  769. .TP
  770. \fB\-h\fR, \fB\-\-dereference\fR
  771. Follow symlinks; archive and dump the files they point to.
  772. .TP
  773. \fB\-\-hard\-dereference\fR
  774. Follow hard links; archive and dump the files they refer to.
  775. .TP
  776. \fB\-K\fR, \fB\-\-starting\-file\fR=\fIMEMBER\fR
  777. Begin at the given member in the archive.
  778. .TP
  779. \fB\-\-newer\-mtime\fR=\fIDATE\fR
  780. Work on files whose data changed after the \fIDATE\fR. If \fIDATE\fR
  781. starts with \fB/\fR or \fB.\fR it is taken to be a file name; the
  782. mtime of that file is used as the date.
  783. .TP
  784. \fB\-\-no\-null\fR
  785. Disable the effect of the previous \fB\-\-null\fR option.
  786. .TP
  787. \fB\-\-no\-recursion\fR
  788. Avoid descending automatically in directories.
  789. .TP
  790. \fB\-\-no\-unquote\fR
  791. Do not unquote filenames read with \fB\-T\fR.
  792. .TP
  793. \fB\-\-null\fR
  794. Instruct subsequent \fB\-T\fR options to read null-terminated names,
  795. disable handling of the \fB\-C\fR option read from the file.
  796. .TP
  797. \fB\-N\fR, \fB\-\-newer\fR=\fIDATE\fR, \fB\-\-after\-date\fR=\fIDATE\fR
  798. Only store files newer than DATE. If \fIDATE\fR starts with \fB/\fR
  799. or \fB.\fR it is taken to be a file name; the ctime of that file is
  800. used as the date.
  801. .TP
  802. \fB\-\-one\-file\-system\fR
  803. Stay in local file system when creating archive.
  804. .TP
  805. \fB\-P\fR, \fB\-\-absolute\-names\fR
  806. Don't strip leading slashes from file names when creating archives.
  807. .TP
  808. \fB\-\-recursion\fR
  809. Recurse into directories (default).
  810. .TP
  811. \fB\-\-suffix\fR=\fISTRING\fR
  812. Backup before removal, override usual suffix. Default suffix is \fB~\fR,
  813. unless overridden by environment variable \fBSIMPLE_BACKUP_SUFFIX\fR.
  814. .TP
  815. \fB\-T\fR, \fB\-\-files\-from\fR=\fIFILE\fR
  816. Get names to extract or create from \fIFILE\fR.
  817. .TP
  818. \fB\-\-unquote\fR
  819. Unquote filenames read with \fB\-T\fR (default).
  820. .TP
  821. \fB\-X\fR, \fB\-\-exclude\-from\fR=\fIFILE\fR
  822. Exclude files matching patterns listed in FILE.
  823. .SS File name transformations
  824. .TP
  825. \fB\-\-strip\-components\fR=\fINUMBER\fR
  826. Strip \fINUMBER\fR leading components from file names on extraction.
  827. .TP
  828. \fB\-\-transform\fR=\fIEXPRESSION\dR, \fB\-\-xform\fR=\fIEXPRESSION\fR
  829. Use sed replace \fIEXPRESSION\fR to transform file names.
  830. .SS File name matching options
  831. These options affect both exclude and include patterns.
  832. .TP
  833. \fB\-\-anchored\fR
  834. Patterns match file name start.
  835. .TP
  836. \fB\-\-ignore\-case\fR
  837. Ignore case.
  838. .TP
  839. \fB\-\-no\-anchored\fR
  840. Patterns match after any \fB/\fR (default for exclusion).
  841. .TP
  842. \fB\-\-no\-ignore\-case\fR
  843. Case sensitive matching (default).
  844. .TP
  845. \fB\-\-no\-wildcards\fR
  846. Verbatim string matching.
  847. .TP
  848. \fB\-\-no\-wildcards\-match\-slash\fR
  849. Wildcards do not match \fB/\fR.
  850. .TP
  851. \fB\-\-wildcards\fR
  852. Use wildcards (default for exclusion).
  853. .TP
  854. \fB\-\-wildcards\-match\-slash\fR
  855. Wildcards match \fB/\fR (default for exclusion).
  856. .SS Informative output
  857. .TP
  858. \fB\-\-checkpoint\fR[=\fIN\fR]
  859. Display progress messages every \fIN\fRth record (default 10).
  860. .TP
  861. \fB\-\-checkpoint\-action\fR=\fIACTION\fR
  862. Run \fIACTION\fR on each checkpoint.
  863. .TP
  864. \fB\-\-full\-time\fR
  865. Print file time to its full resolution.
  866. .TP
  867. \fB\-\-index\-file\fR=\fIFILE\fR
  868. Send verbose output to \fIFILE\fR.
  869. .TP
  870. \fB\-l\fR, \fB\-\-check\-links\fR
  871. Print a message if not all links are dumped.
  872. .TP
  873. \fB\-\-no\-quote\-chars\fR=\fISTRING\fR
  874. Disable quoting for characters from \fISTRING\fR.
  875. .TP
  876. \fB\-\-quote\-chars\fR=\fISTRING\fR
  877. Additionally quote characters from \fISTRING\fR.
  878. .TP
  879. \fB\-\-quoting\-style\fR=\fISTYLE\fR
  880. Set quoting style for file and member names. Valid values for
  881. \fISTYLE\fR are
  882. .BR literal ,
  883. .BR shell ,
  884. .BR shell-always ,
  885. .BR c ,
  886. .BR c-maybe ,
  887. .BR escape ,
  888. .BR locale ,
  889. .BR clocale .
  890. .TP
  891. \fB\-R\fR, \fB\-\-block\-number\fR
  892. Show block number within archive with each message.
  893. .TP
  894. \fB\-\-show\-omitted\-dirs\fR
  895. When listing or extracting, list each directory that does not match
  896. search criteria.
  897. .TP
  898. \fB\-\-show\-transformed\-names\fR, \fB\-\-show\-stored\-names\fR
  899. Show file or archive names after transformation by \fB\-\-strip\fR and
  900. \fB\-\-transform\fR options.
  901. .TP
  902. \fB\-\-totals\fR[=\fISIGNAL\fR]
  903. Print total bytes after processing the archive. If \fISIGNAL\fR is
  904. given, print total bytes when this signal is delivered. Allowed
  905. signals are:
  906. .BR SIGHUP ,
  907. .BR SIGQUIT ,
  908. .BR SIGINT ,
  909. .BR SIGUSR1 ", and"
  910. .BR SIGUSR2 .
  911. The \fBSIG\fR prefix can be omitted.
  912. .TP
  913. \fB\-\-utc\fR
  914. Print file modification times in UTC.
  915. .TP
  916. \fB\-v\fR, \fB\-\-verbose\fR
  917. Verbosely list files processed.
  918. .TP
  919. \fB\-\-warning\fR=\fIKEYWORD\fR
  920. Enable or disable warning messages identified by \fIKEYWORD\fR. The
  921. messages are suppressed if \fIKEYWORD\fR is prefixed with \fBno\-\fR
  922. and enabled otherwise.
  923. Multiple \fB\-\-warning\fR messages accumulate.
  924. Keywords controlling general \fBtar\fR operation:
  925. .RS
  926. .TP
  927. .B all
  928. Enable all warning messages. This is the default.
  929. .TP
  930. .B none
  931. Disable all warning messages.
  932. .TP
  933. .B filename-with-nuls
  934. "%s: file name read contains nul character"
  935. .TP
  936. .B alone-zero-block
  937. "A lone zero block at %s"
  938. .HP
  939. Keywords applicable for \fBtar --create\fR:
  940. .TP
  941. .B cachedir
  942. "%s: contains a cache directory tag %s; %s"
  943. .TP
  944. .B file-shrank
  945. "%s: File shrank by %s bytes; padding with zeros"
  946. .TP
  947. .B xdev
  948. "%s: file is on a different filesystem; not dumped"
  949. .TP
  950. .B file-ignored
  951. "%s: Unknown file type; file ignored"
  952. .br
  953. "%s: socket ignored"
  954. .br
  955. "%s: door ignored"
  956. .TP
  957. .B file-unchanged
  958. "%s: file is unchanged; not dumped"
  959. .TP
  960. .B ignore-archive
  961. "%s: file is the archive; not dumped"
  962. .TP
  963. .B file-removed
  964. "%s: File removed before we read it"
  965. .TP
  966. .B file-changed
  967. "%s: file changed as we read it"
  968. .HP
  969. Keywords applicable for \fBtar --extract\fR:
  970. .TP
  971. .B timestamp
  972. "%s: implausibly old time stamp %s"
  973. .br
  974. "%s: time stamp %s is %s s in the future"
  975. .TP
  976. .B contiguous-cast
  977. "Extracting contiguous files as regular files"
  978. .TP
  979. .B symlink-cast
  980. "Attempting extraction of symbolic links as hard links"
  981. .TP
  982. .B unknown-cast
  983. "%s: Unknown file type '%c', extracted as normal file"
  984. .TP
  985. .B ignore-newer
  986. "Current %s is newer or same age"
  987. .TP
  988. .B unknown-keyword
  989. "Ignoring unknown extended header keyword '%s'"
  990. .TP
  991. .B decompress-program
  992. Controls verbose description of failures occurring when trying to run
  993. alternative decompressor programs. This warning is disabled by
  994. default (unless \fB\-\-verbose\fR is used). A common example of what
  995. you can get when using this warning is:
  996. .EX
  997. $ \fBtar --warning=decompress-program -x -f archive.Z
  998. tar (child): cannot run compress: No such file or directory
  999. tar (child): trying gzip
  1000. .EE
  1001. This means that \fBtar\fR first tried to decompress
  1002. \fBarchive.Z\fR using \fBcompress\fR, and, when that
  1003. failed, switched to \fBgzip\fR.
  1004. .TP
  1005. .B record-size
  1006. "Record size = %lu blocks"
  1007. .HP
  1008. Keywords controlling incremental extraction:
  1009. .TP
  1010. .B rename-directory
  1011. "%s: Directory has been renamed from %s"
  1012. .br
  1013. "%s: Directory has been renamed"
  1014. .TP
  1015. .B new-directory
  1016. "%s: Directory is new"
  1017. .TP
  1018. .B xdev
  1019. "%s: directory is on a different device: not purging"
  1020. .TP
  1021. .B bad-dumpdir
  1022. "Malformed dumpdir: 'X' never used"
  1023. .RE
  1024. .TP
  1025. \fB\-w\fR, \fB\-\-interactive\fR, \fB\-\-confirmation\fR
  1026. Ask for confirmation for every action.
  1027. .SS Compatibility options
  1028. .TP
  1029. \fB\-o\fR
  1030. When creating, same as \fB\-\-old\-archive\fR. When extracting, same
  1031. as \fB\-\-no\-same\-owner\fR.
  1032. .SS Size suffixes
  1033. .sp
  1034. .nf
  1035. .ta 8n 18n 42n
  1036. .ul
  1037. Suffix Units Byte Equivalent
  1038. b Blocks \fISIZE\fR x 512
  1039. B Kilobytes \fISIZE\fR x 1024
  1040. c Bytes \fISIZE\fR
  1041. G Gigabytes \fISIZE\fR x 1024^3
  1042. K Kilobytes \fISIZE\fR x 1024
  1043. k Kilobytes \fISIZE\fR x 1024
  1044. M Megabytes \fISIZE\fR x 1024^2
  1045. P Petabytes \fISIZE\fR x 1024^5
  1046. T Terabytes \fISIZE\fR x 1024^4
  1047. w Words \fISIZE\fR x 2
  1048. .fi
  1049. .PP
  1050. .SH "RETURN VALUE"
  1051. Tar exit code indicates whether it was able to successfully perform
  1052. the requested operation, and if not, what kind of error occurred.
  1053. .TP
  1054. .B 0
  1055. Successful termination.
  1056. .TP
  1057. .B 1
  1058. .I Some files differ.
  1059. If tar was invoked with the \fB\-\-compare\fR (\fB\-\-diff\fR, \fB\-d\fR)
  1060. command line option, this means that some files in the archive differ
  1061. from their disk counterparts. If tar was given one of the \fB\-\-create\fR,
  1062. \fB\-\-append\fR or \fB\-\-update\fR options, this exit code means
  1063. that some files were changed while being archived and so the resulting
  1064. archive does not contain the exact copy of the file set.
  1065. .TP
  1066. .B 2
  1067. .I Fatal error.
  1068. This means that some fatal, unrecoverable error occurred.
  1069. .PP
  1070. If a subprocess that had been invoked by
  1071. .B tar
  1072. exited with a nonzero exit code,
  1073. .B tar
  1074. itself exits with that code as well. This can happen, for example, if
  1075. a compression option (e.g. \fB\-z\fR) was used and the external
  1076. compressor program failed. Another example is
  1077. .B rmt
  1078. failure during backup to a remote device.
  1079. .SH "SEE ALSO"
  1080. .BR bzip2 (1),
  1081. .BR compress (1),
  1082. .BR gzip (1),
  1083. .BR lzma (1),
  1084. .BR lzop (1),
  1085. .BR rmt (8),
  1086. .BR symlink (7),
  1087. .BR tar (5),
  1088. .BR xz (1).
  1089. .PP
  1090. Complete \fBtar\fR manual: run
  1091. .B info tar
  1092. or use
  1093. .BR emacs (1)
  1094. info mode to read it.
  1095. .PP
  1096. Online copies of \fBGNU tar\fR documentation in various formats can be
  1097. found at:
  1098. .PP
  1099. .in +4
  1100. .B http://www.gnu.org/software/tar/manual
  1101. .SH "BUG REPORTS"
  1102. Report bugs to <bug\[email protected]>.
  1103. .SH COPYRIGHT
  1104. Copyright \(co 2013 Free Software Foundation, Inc.
  1105. .br
  1106. .na
  1107. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  1108. .br
  1109. .ad
  1110. This is free software: you are free to change and redistribute it.
  1111. There is NO WARRANTY, to the extent permitted by law.
  1112. .\" Local variables:
  1113. .\" eval: (add-hook 'write-file-hooks 'time-stamp)
  1114. .\" time-stamp-start: ".TH [A-Z_][A-Z0-9_.\\-]* [0-9] \""
  1115. .\" time-stamp-format: "%:B %:d, %:y"
  1116. .\" time-stamp-end: "\""
  1117. .\" time-stamp-line-limit: 20
  1118. .\" end: