{"id":365,"date":"2019-10-21T19:58:54","date_gmt":"2019-10-21T17:58:54","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=365"},"modified":"2019-10-21T19:58:54","modified_gmt":"2019-10-21T17:58:54","slug":"tar","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=365","title":{"rendered":"TAR"},"content":{"rendered":"<p>TAR(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GNU TAR Manual\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAR(1)<\/p>\n<p>NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>tar &#8211; an archiving utility<\/p>\n<p>SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Traditional usage<br \/>\ntar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG&#8230;]<\/p>\n<p>UNIX-style usage<br \/>\ntar -A [OPTIONS] ARCHIVE ARCHIVE<\/p>\n<p>tar -c [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar -d [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar -t [-f ARCHIVE] [OPTIONS] [MEMBER&#8230;]<\/p>\n<p>tar -r [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar -u [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar -x [-f ARCHIVE] [OPTIONS] [MEMBER&#8230;]<\/p>\n<p>GNU-style usage<br \/>\ntar {&#8211;catenate|&#8211;concatenate} [OPTIONS] ARCHIVE ARCHIVE<\/p>\n<p>tar &#8211;create [&#8211;file ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar {&#8211;diff|&#8211;compare} [&#8211;file ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar &#8211;delete [&#8211;file ARCHIVE] [OPTIONS] [MEMBER&#8230;]<\/p>\n<p>tar &#8211;append [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar &#8211;list [-f ARCHIVE] [OPTIONS] [MEMBER&#8230;]<\/p>\n<p>tar &#8211;test-label [&#8211;file ARCHIVE] [OPTIONS] [LABEL&#8230;]<\/p>\n<p>tar &#8211;update [&#8211;file ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar &#8211;update [-f ARCHIVE] [OPTIONS] [FILE&#8230;]<\/p>\n<p>tar {&#8211;extract|&#8211;get} [-f ARCHIVE] [OPTIONS] [MEMBER&#8230;]<\/p>\n<p>NOTE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>This manpage is a short description of GNU tar.\u00a0 For a detailed<br \/>\ndiscussion, including examples and usage recommendations, refer to<br \/>\nthe GNU Tar Manual available in texinfo format.\u00a0 If the info reader<br \/>\nand the tar documentation are properly installed on your system, the<br \/>\ncommand<\/p>\n<p>info tar<\/p>\n<p>should give you access to the complete manual.<\/p>\n<p>You can also view the manual using the info mode in emacs(1), or find<br \/>\nit in various formats online at<\/p>\n<p>http:\/\/www.gnu.org\/software\/tar\/manual<\/p>\n<p>If any discrepancies occur between this manpage and the GNU Tar<br \/>\nManual, the later shall be considered the authoritative source.<\/p>\n<p>DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>GNU tar is an archiving program designed to store multiple files in a<br \/>\nsingle file (an archive), and to manipulate such archives.\u00a0 The<br \/>\narchive can be either a regular file or a device (e.g. a tape drive,<br \/>\nhence the name of the program, which stands for tape archiver), which<br \/>\ncan be located either on the local or on a remote machine.<\/p>\n<p>Option styles<br \/>\nOptions to GNU tar can be given in three different styles.\u00a0 In<br \/>\ntraditional style, the first argument is a cluster of option letters<br \/>\nand all subsequent arguments supply arguments to those options that<br \/>\nrequire them.\u00a0 The arguments are read in the same order as the option<br \/>\nletters.\u00a0 Any command line words that remain after all options has<br \/>\nbeen processed are treated as non-optional arguments: file or archive<br \/>\nmember names.<\/p>\n<p>For example, the c option requires creating the archive, the v option<br \/>\nrequests the verbose operation, and the f option takes an argument<br \/>\nthat sets the name of the archive to operate upon.\u00a0 The following<br \/>\ncommand, written in the traditional style, instructs tar to store all<br \/>\nfiles from the directory \/etc into the archive file etc.tar verbosely<br \/>\nlisting the files being archived:<\/p>\n<p>tar cfv a.tar \/etc<\/p>\n<p>In UNIX or short-option style, each option letter is prefixed with a<br \/>\nsingle dash, as in other command line utilities.\u00a0 If an option takes<br \/>\nargument, the argument follows it, either as a separate command line<br \/>\nword, or immediately following the option.\u00a0 However, if the option<br \/>\ntakes an optional argument, the argument must follow the option let\u2010<br \/>\nter without any intervening whitespace, as in -g\/tmp\/snar.db.<\/p>\n<p>Any number of options not taking arguments can be clustered together<br \/>\nafter a single dash, e.g. -vkp.\u00a0 Options that take arguments (whether<br \/>\nmandatory or optional), can appear at the end of such a cluster, e.g.<br \/>\n-vkpf a.tar.<\/p>\n<p>The example command above written in the short-option style could<br \/>\nlook like:<\/p>\n<p>tar -cvf a.tar \/etc<br \/>\nor<br \/>\ntar -c -v -f a.tar \/etc<\/p>\n<p>In GNU or long-option style, each option begins with two dashes and<br \/>\nhas a meaningful name, consisting of lower-case letters and dashes.<br \/>\nWhen used, the long option can be abbreviated to its initial letters,<br \/>\nprovided that this does not create ambiguity.\u00a0 Arguments to long<br \/>\noptions are supplied either as a separate command line word, immedi\u2010<br \/>\nately following the option, or separated from the option by an equals<br \/>\nsign with no intervening whitespace.\u00a0 Optional arguments must always<br \/>\nuse the latter method.<\/p>\n<p>Here are several ways of writing the example command in this style:<\/p>\n<p>tar &#8211;create &#8211;file a.tar &#8211;verbose \/etc<br \/>\nor (abbreviating some options):<br \/>\ntar &#8211;cre &#8211;file=a.tar &#8211;verb \/etc<\/p>\n<p>The options in all three styles can be intermixed, although doing so<br \/>\nwith old options is not encouraged.<\/p>\n<p>Operation mode<br \/>\nThe options listed in the table below tell GNU tar what operation it<br \/>\nis to perform.\u00a0 Exactly one of them must be given.\u00a0 Meaning of non-<br \/>\noptional arguments depends on the operation mode requested.<\/p>\n<p>-A, &#8211;catenate, &#8211;concatenate<br \/>\nAppend archive to the end of another archive.\u00a0 The arguments<br \/>\nare treated as the names of archives to append.\u00a0 All archives<br \/>\nmust be of the same format as the archive they are appended<br \/>\nto, otherwise the resulting archive might be unusable with<br \/>\nnon-GNU implementations of tar.\u00a0 Notice also that when more<br \/>\nthan one archive is given, the members from archives other<br \/>\nthan the first one will be accessible in the resulting archive<br \/>\nonly if using the -i (&#8211;ignore-zeros) option.<\/p>\n<p>Compressed archives cannot be concatenated.<\/p>\n<p>-c, &#8211;create<br \/>\nCreate a new archive.\u00a0 Arguments supply the names of the files<br \/>\nto be archived.\u00a0 Directories are archived recursively, unless<br \/>\nthe &#8211;no-recursion option is given.<\/p>\n<p>-d, &#8211;diff, &#8211;compare<br \/>\nFind differences between archive and file system.\u00a0 The argu\u2010<br \/>\nments are optional and specify archive members to compare.\u00a0 If<br \/>\nnot given, the current working directory is assumed.<\/p>\n<p>&#8211;delete<br \/>\nDelete from the archive.\u00a0 The arguments supply names of the<br \/>\narchive members to be removed.\u00a0 At least one argument must be<br \/>\ngiven.<\/p>\n<p>This option does not operate on compressed archives.\u00a0 There is<br \/>\nno short option equivalent.<\/p>\n<p>-r, &#8211;append<br \/>\nAppend files to the end of an archive.\u00a0 Arguments have the<br \/>\nsame meaning as for -c (&#8211;create).<\/p>\n<p>-t, &#8211;list<br \/>\nList the contents of an archive.\u00a0 Arguments are optional.<br \/>\nWhen given, they specify the names of the members to list.<\/p>\n<p>&#8211;test-label<br \/>\nTest the archive volume label and exit.\u00a0 When used without<br \/>\narguments, it prints the volume label (if any) and exits with<br \/>\nstatus 0.\u00a0 When one or more command line arguments are given.<br \/>\ntar compares the volume label with each argument.\u00a0 It exits<br \/>\nwith code 0 if a match is found, and with code 1 otherwise.<br \/>\nNo output is displayed, unless used together with the -v<br \/>\n(&#8211;verbose) option.<\/p>\n<p>There is no short option equivalent for this option.<\/p>\n<p>-u, &#8211;update<br \/>\nAppend files which are newer than the corresponding copy in<br \/>\nthe archive.\u00a0 Arguments have the same meaning as with -c and<br \/>\n-r options.<\/p>\n<p>-x, &#8211;extract, &#8211;get<br \/>\nExtract files from an archive.\u00a0 Arguments are optional.\u00a0 When<br \/>\ngiven, they specify names of the archive members to be<br \/>\nextracted.<\/p>\n<p>&#8211;show-defaults<br \/>\nShow built-in defaults for various tar options and<br \/>\nexit.\u00a0 No arguments are allowed.<\/p>\n<p>-?, &#8211;help<br \/>\nDisplay a short option summary and exit.\u00a0 No arguments<br \/>\nallowed.<\/p>\n<p>&#8211;usage<br \/>\nDisplay a list of available options and exit.\u00a0 No argu\u2010<br \/>\nments allowed.<\/p>\n<p>&#8211;version<br \/>\nPrint program version and copyright information and<br \/>\nexit.<\/p>\n<p>OPTIONS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Operation modifiers<br \/>\n&#8211;check-device<br \/>\nCheck device numbers when creating incremental archives<br \/>\n(default).<\/p>\n<p>-g, &#8211;listed-incremental=FILE<br \/>\nHandle new GNU-format incremental backups.\u00a0 FILE is the<br \/>\nname of a snapshot file, where tar stores additional<br \/>\ninformation which is used to decide which files changed<br \/>\nsince the previous incremental dump and, consequently,<br \/>\nmust be dumped again.\u00a0 If FILE does not exist when<br \/>\ncreating an archive, it will be created and all files<br \/>\nwill be added to the resulting archive (the level 0<br \/>\ndump).\u00a0 To create incremental archives of non-zero<br \/>\nlevel N, create a copy of the snapshot file created<br \/>\nduring the level N-1, and use it as FILE.<\/p>\n<p>When listing or extracting, the actual contents of FILE<br \/>\nis not inspected, it is needed only due to syntactical<br \/>\nrequirements.\u00a0 It is therefore common practice to use<br \/>\n\/dev\/null in its place.<\/p>\n<p>-G, &#8211;incremental<br \/>\nHandle old GNU-format incremental backups.<\/p>\n<p>&#8211;ignore-failed-read<br \/>\nDo not exit with nonzero on unreadable files.<\/p>\n<p>&#8211;level=NUMBER<br \/>\nSet dump level for created listed-incremental archive.<br \/>\nCurrently only &#8211;level=0 is meaningful: it instructs<br \/>\ntar to truncate the snapshot file before dumping,<br \/>\nthereby forcing a level 0 dump.<\/p>\n<p>-n, &#8211;seek<br \/>\nAssume the archive is seekable.\u00a0 Normally tar<br \/>\ndetermines automatically whether the archive can be<br \/>\nseeked or not.\u00a0 This option is intended for use in<br \/>\ncases when such recognition fails.\u00a0 It takes effect<br \/>\nonly if the archive is open for reading (e.g. with<br \/>\n&#8211;list or &#8211;extract options).<\/p>\n<p>&#8211;no-check-device<br \/>\nDo not check device numbers when creating incremental<br \/>\narchives.<\/p>\n<p>&#8211;no-seek<br \/>\nAssume the archive is not seekable.<\/p>\n<p>&#8211;occurrence[=N]<br \/>\nProcess only the Nth occurrence of each file in the<br \/>\narchive.\u00a0 This option is valid only when used with one<br \/>\nof the following subcommands: &#8211;delete, &#8211;diff,<br \/>\n&#8211;extract or &#8211;list and when a list of files is given<br \/>\neither on the command line or via the -T option.\u00a0 The<br \/>\ndefault N is 1.<\/p>\n<p>&#8211;restrict<br \/>\nDisable the use of some potentially harmful options.<\/p>\n<p>&#8211;sparse-version=MAJOR[.MINOR]<br \/>\nSet version of the sparse format to use (implies<br \/>\n&#8211;sparse).\u00a0 This option implies &#8211;sparse.\u00a0 Valid<br \/>\nargument values are 0.0, 0.1, and 1.0.\u00a0 For a detailed<br \/>\ndiscussion of sparse formats, refer to the GNU Tar<br \/>\nManual, appendix D, &#8220;Sparse Formats&#8221;.\u00a0 Using info<br \/>\nreader, it can be accessed running the following<br \/>\ncommand: info tar &#8216;Sparse Formats&#8217;.<\/p>\n<p>-S, &#8211;sparse<br \/>\nHandle sparse files efficiently.\u00a0 Some files in the<br \/>\nfile system may have segments which were actually never<br \/>\nwritten (quite often these are database files created<br \/>\nby such systems as DBM).\u00a0 When given this option, tar<br \/>\nattempts to determine if the file is sparse prior to<br \/>\narchiving it, and if so, to reduce the resulting<br \/>\narchive size by not dumping empty parts of the file.<\/p>\n<p>Overwrite control<br \/>\nThese options control tar actions when extracting a file over<br \/>\nan existing copy on disk.<\/p>\n<p>-k, &#8211;keep-old-files<br \/>\nDon&#8217;t replace existing files when extracting.<\/p>\n<p>&#8211;keep-newer-files<br \/>\nDon&#8217;t replace existing files that are newer than their<br \/>\narchive copies.<\/p>\n<p>&#8211;no-overwrite-dir<br \/>\nPreserve metadata of existing directories.<\/p>\n<p>&#8211;one-top-level[=DIR]<br \/>\nExtract all files into DIR, or, if used without<br \/>\nargument, into a subdirectory named by the base name of<br \/>\nthe archive (minus standard compression suffixes<br \/>\nrecognizable by &#8211;auto-compress).<\/p>\n<p>&#8211;overwrite<br \/>\nOverwrite existing files when extracting.<\/p>\n<p>&#8211;overwrite-dir<br \/>\nOverwrite metadata of existing directories when<br \/>\nextracting (default).<\/p>\n<p>&#8211;recursive-unlink<br \/>\nRecursively remove all files in the directory prior to<br \/>\nextracting it.<\/p>\n<p>&#8211;remove-files<br \/>\nRemove files from disk after adding them to the<br \/>\narchive.<\/p>\n<p>&#8211;skip-old-files<br \/>\nDon&#8217;t replace existing files when extracting, silently<br \/>\nskip over them.<\/p>\n<p>-U, &#8211;unlink-first<br \/>\nRemove each file prior to extracting over it.<\/p>\n<p>-W, &#8211;verify<br \/>\nVerify the archive after writing it.<\/p>\n<p>Output stream selection<br \/>\n&#8211;ignore-command-error<\/p>\n<p>Ignore subprocess exit codes.<\/p>\n<p>&#8211;no-ignore-command-error<br \/>\nTreat non-zero exit codes of children as error<br \/>\n(default).<\/p>\n<p>-O, &#8211;to-stdout<br \/>\nExtract files to standard output.<\/p>\n<p>&#8211;to-command=COMMAND<br \/>\nPipe extracted files to COMMAND.\u00a0 The argument is the<br \/>\npathname of an external program, optionally with<br \/>\ncommand line arguments.\u00a0 The program will be invoked<br \/>\nand the contents of the file being extracted supplied<br \/>\nto it on its standard output.\u00a0 Additional data will be<br \/>\nsupplied via the following environment variables:<\/p>\n<p>TAR_FILETYPE<br \/>\nType of the file. It is a single letter with the<br \/>\nfollowing meaning:<\/p>\n<p>f\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Regular file<br \/>\nd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Directory<br \/>\nl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Symbolic link<br \/>\nh\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Hard link<br \/>\nb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Block device<br \/>\nc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Character device<\/p>\n<p>Currently only regular files are supported.<\/p>\n<p>TAR_MODE<br \/>\nFile mode, an octal number.<\/p>\n<p>TAR_FILENAME<br \/>\nThe name of the file.<\/p>\n<p>TAR_REALNAME<br \/>\nName of the file as stored in the archive.<\/p>\n<p>TAR_UNAME<br \/>\nName of the file owner.<\/p>\n<p>TAR_GNAME<br \/>\nName of the file owner group.<\/p>\n<p>TAR_ATIME<br \/>\nTime of last access. It is a decimal number,<br \/>\nrepresenting seconds since the Epoch.\u00a0 If the<br \/>\narchive provides times with nanosecond<br \/>\nprecision, the nanoseconds are appended to the<br \/>\ntimestamp after a decimal point.<\/p>\n<p>TAR_MTIME<br \/>\nTime of last modification.<\/p>\n<p>TAR_CTIME<br \/>\nTime of last status change.<\/p>\n<p>TAR_SIZE<br \/>\nSize of the file.<\/p>\n<p>TAR_UID<br \/>\nUID of the file owner.<\/p>\n<p>TAR_GID<br \/>\nGID of the file owner.<\/p>\n<p>Additionally, the following variables contain<br \/>\ninformation about tar operation mode and the archive<br \/>\nbeing processed:<\/p>\n<p>TAR_VERSION<br \/>\nGNU tar version number.<\/p>\n<p>TAR_ARCHIVE<br \/>\nThe name of the archive tar is processing.<\/p>\n<p>TAR_BLOCKING_FACTOR<br \/>\nCurrent blocking factor, i.e. number of 512-byte<br \/>\nblocks in a record.<\/p>\n<p>TAR_VOLUME<br \/>\nOrdinal number of the volume tar is processing<br \/>\n(set if reading a multi-volume archive).<\/p>\n<p>TAR_FORMAT<br \/>\nFormat of the archive being processed.\u00a0 One of:<br \/>\ngnu, oldgnu, posix, ustar, v7.\u00a0 TAR_SUBCOMMAND A<br \/>\nshort option (with a leading dash) describing<br \/>\nthe operation tar is executing.<\/p>\n<p>Handling of file attributes<br \/>\n&#8211;atime-preserve[=METHOD]<br \/>\nPreserve access times on dumped files, either by<br \/>\nrestoring the times after reading (METHOD=replace, this<br \/>\nis the default) or by not setting the times in the<br \/>\nfirst place (METHOD=system)<\/p>\n<p>&#8211;delay-directory-restore<br \/>\nDelay setting modification times and permissions of<br \/>\nextracted directories until the end of extraction.\u00a0 Use<br \/>\nthis option when extracting from an archive which has<br \/>\nunusual member ordering.<\/p>\n<p>&#8211;group=NAME<br \/>\nForce NAME as group for added files.<\/p>\n<p>&#8211;mode=CHANGES<br \/>\nForce symbolic mode CHANGES for added files.<\/p>\n<p>&#8211;mtime=DATE-OR-FILE<br \/>\nSet mtime for added files.\u00a0 DATE-OR-FILE is either a<br \/>\ndate\/time in almost arbitrary formate, or the name of<br \/>\nan existing file.\u00a0 In the latter case the mtime of that<br \/>\nfile will be used.<\/p>\n<p>-m, &#8211;touch<br \/>\nDon&#8217;t extract file modified time.<\/p>\n<p>&#8211;no-delay-directory-restore<br \/>\nCancel the effect of the prior<br \/>\n&#8211;delay-directory-restore option.<\/p>\n<p>&#8211;no-same-owner<br \/>\nExtract files as yourself (default for ordinary users).<\/p>\n<p>&#8211;no-same-permissions<br \/>\nApply the user&#8217;s umask when extracting permissions from<br \/>\nthe archive (default for ordinary users).<\/p>\n<p>&#8211;numeric-owner<br \/>\nAlways use numbers for user\/group names.<\/p>\n<p>&#8211;owner=NAME<br \/>\nForce NAME as owner for added files.<\/p>\n<p>-p, &#8211;preserve-permissions, &#8211;same-permissions<br \/>\nextract information about file permissions (default for<br \/>\nsuperuser)<\/p>\n<p>&#8211;preserve<br \/>\nSame as both -p and -s.<\/p>\n<p>&#8211;same-owner<br \/>\nTry extracting files with the same ownership as exists<br \/>\nin the archive (default for superuser).<\/p>\n<p>-s, &#8211;preserve-order, &#8211;same-order<br \/>\nSort names to extract to match archive<\/p>\n<p>&#8211;sort=ORDER<br \/>\nWhen creating an archive, sort directory entries<br \/>\naccording to ORDER, which is one of none, name, or<br \/>\ninode.<\/p>\n<p>The default is &#8211;sort=none, which stores archive<br \/>\nmembers in the same order as returned by the operating<br \/>\nsystem.<\/p>\n<p>Using &#8211;sort=name ensures the member ordering in the<br \/>\ncreated archive is uniform and reproducible.<\/p>\n<p>Using &#8211;sort=inode reduces the number of disk seeks<br \/>\nmade when creating the archive and thus can<br \/>\nconsiderably speed up archivation.\u00a0 This sorting order<br \/>\nis supported only if the underlying system provides the<br \/>\nnecessary information.<\/p>\n<p>Device selection and switching<br \/>\n-f, &#8211;file=ARCHIVE<br \/>\nUse archive file or device ARCHIVE.\u00a0 If this option is<br \/>\nnot given, tar will first examine the environment<br \/>\nvariable `TAPE&#8217;.\u00a0 If it is set, its value will be used<br \/>\nas the archive name.\u00a0 Otherwise, tar will assume the<br \/>\ncompiled-in default.\u00a0 The default value can be<br \/>\ninspected either using the &#8211;show-defaults option, or<br \/>\nat the end of the tar &#8211;help output.<\/p>\n<p>An archive name that has a colon in it specifies a file<br \/>\nor device on a remote machine.\u00a0 The part before the<br \/>\ncolon is taken as the machine name or IP address, and<br \/>\nthe part after it as the file or device pathname, e.g.:<\/p>\n<p>&#8211;file=remotehost:\/dev\/sr0<\/p>\n<p>An optional username can be prefixed to the hostname,<br \/>\nplacing a @ sign between them.<\/p>\n<p>By default, the remote host is accessed via the rsh(1)<br \/>\ncommand.\u00a0 Nowadays it is common to use ssh(1) instead.<br \/>\nYou can do so by giving the following command line<br \/>\noption:<\/p>\n<p>&#8211;rsh-command=\/usr\/bin\/ssh<\/p>\n<p>The remote machine should have the rmt(8) command<br \/>\ninstalled.\u00a0 If its pathname does not match tar&#8217;s<br \/>\ndefault, you can inform tar about the correct pathname<br \/>\nusing the &#8211;rmt-command option.<\/p>\n<p>&#8211;force-local<br \/>\nArchive file is local even if it has a colon.<\/p>\n<p>-F, &#8211;info-script=COMMAND, &#8211;new-volume-script=COMMAND<br \/>\nRun COMMAND at the end of each tape (implies -M).\u00a0 The<br \/>\ncommand can include arguments.\u00a0 When started, it will<br \/>\ninherit tar&#8217;s environment plus the following variables:<\/p>\n<p>TAR_VERSION<br \/>\nGNU tar version number.<\/p>\n<p>TAR_ARCHIVE<br \/>\nThe name of the archive tar is processing.<\/p>\n<p>TAR_BLOCKING_FACTOR<br \/>\nCurrent blocking factor, i.e. number of 512-byte<br \/>\nblocks in a record.<\/p>\n<p>TAR_VOLUME<br \/>\nOrdinal number of the volume tar is processing<br \/>\n(set if reading a multi-volume archive).<\/p>\n<p>TAR_FORMAT<br \/>\nFormat of the archive being processed.\u00a0 One of:<br \/>\ngnu, oldgnu, posix, ustar, v7.<\/p>\n<p>TAR_SUBCOMMAND<br \/>\nA short option (with a leading dash) describing<br \/>\nthe operation tar is executing.<\/p>\n<p>TAR_FD File descriptor which can be used to communicate<br \/>\nthe new volume name to tar.<\/p>\n<p>If the info script fails, tar exits; otherwise, it<br \/>\nbegins writing the next volume.<\/p>\n<p>-L, &#8211;tape-length=<br \/>\nChange tape after writing Nx1024 bytes.\u00a0 If N is fol\u2010<br \/>\nlowed by a size suffix (see the subsection Size suf\u2010<br \/>\nfixes below), the suffix specifies the multiplicative<br \/>\nfactor to be used instead of 1024.<\/p>\n<p>This option implies -M.<\/p>\n<p>-M, &#8211;multi-volume<br \/>\nCreate\/list\/extract multi-volume archive.<\/p>\n<p>&#8211;rmt-command=COMMAND<br \/>\nUse COMMAND instead of rmt when accessing remote ar\u2010<br \/>\nchives.\u00a0 See the description of the -f option, above.<\/p>\n<p>&#8211;rsh-command=COMMAND<br \/>\nUse COMMAND instead of rsh when accessing remote ar\u2010<br \/>\nchives.\u00a0 See the description of the -f option, above.<\/p>\n<p>&#8211;volno-file=FILE<br \/>\nWhen this option is used in conjunction with<br \/>\n&#8211;multi-volume, tar will keep track of which volume of<br \/>\na multi-volume archive it is working in FILE.<\/p>\n<p>Device blocking<br \/>\n-b, &#8211;blocking-factor=BLOCKS<br \/>\nSet record size to BLOCKSx512 bytes.<\/p>\n<p>-B, &#8211;read-full-records<br \/>\nWhen listing or extracting, accept incomplete input<br \/>\nrecords after end-of-file marker.<\/p>\n<p>-i, &#8211;ignore-zeros<br \/>\nIgnore zeroed blocks in archive.\u00a0 Normally two consecu\u2010<br \/>\ntive 512-blocks filled with zeroes mean EOF and tar<br \/>\nstops reading after encountering them.\u00a0 This option<br \/>\ninstructs it to read further and is useful when reading<br \/>\narchives created with the -A option.<\/p>\n<p>&#8211;record-size=NUMBER<br \/>\nSet record size.\u00a0 NUMBER is the number of bytes per<br \/>\nrecord.\u00a0 It must be multiple of 512.\u00a0 It can can be<br \/>\nsuffixed with a size suffix, e.g. &#8211;record-size=10K,<br \/>\nfor 10 Kilobytes.\u00a0 See the subsection Size suffixes,<br \/>\nfor a list of valid suffixes.<\/p>\n<p>Archive format selection<br \/>\n-H, &#8211;format=FORMAT<br \/>\nCreate archive of the given format.\u00a0 Valid formats are:<\/p>\n<p>gnu\u00a0\u00a0\u00a0 GNU tar 1.13.x format<\/p>\n<p>oldgnu GNU format as per tar &lt;= 1.12.<\/p>\n<p>pax, posix<br \/>\nPOSIX 1003.1-2001 (pax) format.<\/p>\n<p>ustar\u00a0 POSIX 1003.1-1988 (ustar) format.<\/p>\n<p>v7\u00a0\u00a0\u00a0\u00a0 Old V7 tar format.<\/p>\n<p>&#8211;old-archive, &#8211;portability<br \/>\nSame as &#8211;format=v7.<\/p>\n<p>&#8211;pax-option=keyword[[:]=value][,keyword[[:]=value]]&#8230;<br \/>\nControl pax keywords when creating PAX archives (-H<br \/>\npax).\u00a0 This option is equivalent to the -o option of<br \/>\nthe pax(1)utility.<\/p>\n<p>&#8211;posix<br \/>\nSame as &#8211;format=posix.<\/p>\n<p>-V, &#8211;label=TEXT<br \/>\nCreate archive with volume name TEXT.\u00a0 If listing or<br \/>\nextracting, use TEXT as a globbing pattern for volume<br \/>\nname.<\/p>\n<p>Compression options<br \/>\n-a, &#8211;auto-compress<br \/>\nUse archive suffix to determine the compression pro\u2010<br \/>\ngram.<\/p>\n<p>-I, &#8211;use-compress-program=COMMAND<br \/>\nFilter data through COMMAND.\u00a0 It must accept the -d<br \/>\noption, for decompression.\u00a0 The argument can contain<br \/>\ncommand line options.<\/p>\n<p>-j, &#8211;bzip2<br \/>\nFilter the archive through bzip2(1).<\/p>\n<p>-J, &#8211;xz<br \/>\nFilter the archive through xz(1).<\/p>\n<p>&#8211;lzip Filter the archive through lzip(1).<\/p>\n<p>&#8211;lzma Filter the archive through lzma(1).<\/p>\n<p>&#8211;lzop Filter the archive through lzop(1).<\/p>\n<p>&#8211;no-auto-compress<br \/>\nDo not use archive suffix to determine the compression<br \/>\nprogram.<\/p>\n<p>-z, &#8211;gzip, &#8211;gunzip, &#8211;ungzip<br \/>\nFilter the archive through gzip(1).<\/p>\n<p>-Z, &#8211;compress, &#8211;uncompress<br \/>\nFilter the archive through compress(1).<\/p>\n<p>Local file selection<br \/>\n&#8211;add-file=FILE<br \/>\nAdd FILE to the archive (useful if its name starts with<br \/>\na dash).<\/p>\n<p>&#8211;backup[=CONTROL]<br \/>\nBackup before removal.\u00a0 The CONTROL argument, if sup\u2010<br \/>\nplied, controls the backup policy.\u00a0 Its valid values<br \/>\nare:<\/p>\n<p>none, off<br \/>\nNever make backups.<\/p>\n<p>t, numbered<br \/>\nMake numbered backups.<\/p>\n<p>nil, existing<br \/>\nMake numbered backups if numbered backups exist,<br \/>\nsimple backups otherwise.<\/p>\n<p>never, simple<br \/>\nAlways make simple backups<\/p>\n<p>If CONTROL is not given, the value is taken from the<br \/>\nVERSION_CONTROL environment variable.\u00a0 If it is not<br \/>\nset, existing is assumed.<\/p>\n<p>-C, &#8211;directory=DIR<br \/>\nChange to directory DIR.<\/p>\n<p>&#8211;exclude=PATTERN<br \/>\nExclude files matching PATTERN, a glob(3)-style wild\u2010<br \/>\ncard pattern.<\/p>\n<p>&#8211;exclude-backups<br \/>\nExclude backup and lock files.<\/p>\n<p>&#8211;exclude-caches<br \/>\nExclude contents of directories containing file<br \/>\nCACHEDIR.TAG, except for the tag file itself.<\/p>\n<p>&#8211;exclude-caches-all<br \/>\nExclude directories containing file CACHEDIR.TAG and<br \/>\nthe file itself.<\/p>\n<p>&#8211;exclude-caches-under<br \/>\nExclude everything under directories containing<br \/>\nCACHEDIR.TAG<\/p>\n<p>&#8211;exclude-ignore=FILE<br \/>\nBefore dumping a directory, see if it contains FILE.<br \/>\nIf so, read exclusion patterns from this file.\u00a0 The<br \/>\npatterns affect only the directory itself.<\/p>\n<p>&#8211;exclude-ignore-recursive=FILE<br \/>\nSame as &#8211;exclude-ignore, except that patterns from<br \/>\nFILE affect both the directory and all its subdirecto\u2010<br \/>\nries.<\/p>\n<p>&#8211;exclude-tag=FILE<br \/>\nExclude contents of directories containing FILE, except<br \/>\nfor FILE itself.<\/p>\n<p>&#8211;exclude-tag-all=FILE<br \/>\nExclude directories containing FILE.<\/p>\n<p>&#8211;exclude-tag-under=FILE<br \/>\nExclude everything under directories containing FILE.<\/p>\n<p>&#8211;exclude-vcs<br \/>\nExclude version control system directories.<\/p>\n<p>&#8211;exclude-vcs-ignores<br \/>\nExclude files that match patterns read from VCS-spe\u2010<br \/>\ncific ignore files.\u00a0 Supported files are: .cvsignore,<br \/>\n.gitignore, .bzrignore, and .hgignore.<\/p>\n<p>-h, &#8211;dereference<br \/>\nFollow symlinks; archive and dump the files they point<br \/>\nto.<\/p>\n<p>&#8211;hard-dereference<br \/>\nFollow hard links; archive and dump the files they<br \/>\nrefer to.<\/p>\n<p>-K, &#8211;starting-file=MEMBER<br \/>\nBegin at the given member in the archive.<\/p>\n<p>&#8211;newer-mtime=DATE<br \/>\nWork on files whose data changed after the DATE.\u00a0 If<br \/>\nDATE starts with \/ or . it is taken to be a file name;<br \/>\nthe mtime of that file is used as the date.<\/p>\n<p>&#8211;no-null<br \/>\nDisable the effect of the previous &#8211;null option.<\/p>\n<p>&#8211;no-recursion<br \/>\nAvoid descending automatically in directories.<\/p>\n<p>&#8211;no-unquote<br \/>\nDo not unquote input file or member names.<\/p>\n<p>&#8211;null Instruct subsequent -T options to read null-terminated<br \/>\nnames, disable handling of the -C option read from the<br \/>\nfile.<\/p>\n<p>-N, &#8211;newer=DATE, &#8211;after-date=DATE<br \/>\nOnly store files newer than DATE.\u00a0 If DATE starts with<br \/>\n\/ or . it is taken to be a file name; the ctime of that<br \/>\nfile is used as the date.<\/p>\n<p>&#8211;one-file-system<br \/>\nStay in local file system when creating archive.<\/p>\n<p>-P, &#8211;absolute-names<br \/>\nDon&#8217;t strip leading slashes from file names when creat\u2010<br \/>\ning archives.<\/p>\n<p>&#8211;recursion<br \/>\nRecurse into directories (default).<\/p>\n<p>&#8211;suffix=STRING<br \/>\nBackup before removal, override usual suffix.\u00a0 Default<br \/>\nsuffix is ~, unless overridden by environment variable<br \/>\nSIMPLE_BACKUP_SUFFIX.<\/p>\n<p>-T, &#8211;files-from=FILE<br \/>\nGet names to extract or create from FILE.<\/p>\n<p>&#8211;unquote<br \/>\nUnquote file or member names (default).<\/p>\n<p>-X, &#8211;exclude-from=FILE<br \/>\nExclude files matching patterns listed in FILE.<\/p>\n<p>File name transformations<br \/>\n&#8211;strip-components=NUMBER<br \/>\nStrip NUMBER leading components from file names on<br \/>\nextraction.<\/p>\n<p>&#8211;transform=EXPRESSION, &#8211;xform=EXPRESSION<br \/>\nUse sed replace EXPRESSION to transform file names.<\/p>\n<p>File name matching options<br \/>\nThese options affect both exclude and include patterns.<\/p>\n<p>&#8211;anchored<br \/>\nPatterns match file name start.<\/p>\n<p>&#8211;ignore-case<br \/>\nIgnore case.<\/p>\n<p>&#8211;no-anchored<br \/>\nPatterns match after any \/ (default for exclusion).<\/p>\n<p>&#8211;no-ignore-case<br \/>\nCase sensitive matching (default).<\/p>\n<p>&#8211;no-wildcards<br \/>\nVerbatim string matching.<\/p>\n<p>&#8211;no-wildcards-match-slash<br \/>\nWildcards do not match \/.<\/p>\n<p>&#8211;wildcards<br \/>\nUse wildcards (default for exclusion).<\/p>\n<p>&#8211;wildcards-match-slash<br \/>\nWildcards match \/ (default for exclusion).<\/p>\n<p>Informative output<br \/>\n&#8211;checkpoint[=N]<br \/>\nDisplay progress messages every Nth record (default<br \/>\n10).<\/p>\n<p>&#8211;checkpoint-action=ACTION<br \/>\nRun ACTION on each checkpoint.<\/p>\n<p>&#8211;full-time<br \/>\nPrint file time to its full resolution.<\/p>\n<p>&#8211;index-file=FILE<br \/>\nSend verbose output to FILE.<\/p>\n<p>-l, &#8211;check-links<br \/>\nPrint a message if not all links are dumped.<\/p>\n<p>&#8211;no-quote-chars=STRING<br \/>\nDisable quoting for characters from STRING.<\/p>\n<p>&#8211;quote-chars=STRING<br \/>\nAdditionally quote characters from STRING.<\/p>\n<p>&#8211;quoting-style=STYLE<br \/>\nSet quoting style for file and member names.\u00a0 Valid<br \/>\nvalues for STYLE are literal, shell, shell-always, c,<br \/>\nc-maybe, escape, locale, clocale.<\/p>\n<p>-R, &#8211;block-number<br \/>\nShow block number within archive with each message.<\/p>\n<p>&#8211;show-omitted-dirs<br \/>\nWhen listing or extracting, list each directory that<br \/>\ndoes not match search criteria.<\/p>\n<p>&#8211;show-transformed-names, &#8211;show-stored-names<br \/>\nShow file or archive names after transformation by<br \/>\n&#8211;strip and &#8211;transform options.<\/p>\n<p>&#8211;totals[=SIGNAL]<br \/>\nPrint total bytes after processing the archive.\u00a0 If<br \/>\nSIGNAL is given, print total bytes when this signal is<br \/>\ndelivered.\u00a0 Allowed signals are: SIGHUP, SIGQUIT, SIG\u2010<br \/>\nINT, SIGUSR1, and SIGUSR2.\u00a0 The SIG prefix can be omit\u2010<br \/>\nted.<\/p>\n<p>&#8211;utc\u00a0 Print file modification times in UTC.<\/p>\n<p>-v, &#8211;verbose<br \/>\nVerbosely list files processed.<\/p>\n<p>&#8211;warning=KEYWORD<br \/>\nEnable or disable warning messages identified by KEY\u2010<br \/>\nWORD.\u00a0 The messages are suppressed if KEYWORD is pre\u2010<br \/>\nfixed with no- and enabled otherwise.<\/p>\n<p>Multiple &#8211;warning messages accumulate.<\/p>\n<p>Keywords controlling general tar operation:<\/p>\n<p>all\u00a0\u00a0\u00a0 Enable all warning messages.\u00a0 This is the<br \/>\ndefault.<\/p>\n<p>none\u00a0\u00a0 Disable all warning messages.<\/p>\n<p>filename-with-nuls<br \/>\n&#8220;%s: file name read contains nul character&#8221;<\/p>\n<p>alone-zero-block<br \/>\n&#8220;A lone zero block at %s&#8221;<\/p>\n<p>Keywords applicable for tar &#8211;create:<\/p>\n<p>cachedir<br \/>\n&#8220;%s: contains a cache directory tag %s; %s&#8221;<\/p>\n<p>file-shrank<br \/>\n&#8220;%s: File shrank by %s bytes; padding with<br \/>\nzeros&#8221;<\/p>\n<p>xdev\u00a0\u00a0 &#8220;%s: file is on a different filesystem; not<br \/>\ndumped&#8221;<\/p>\n<p>file-ignored<br \/>\n&#8220;%s: Unknown file type; file ignored&#8221;<br \/>\n&#8220;%s: socket ignored&#8221;<br \/>\n&#8220;%s: door ignored&#8221;<\/p>\n<p>file-unchanged<br \/>\n&#8220;%s: file is unchanged; not dumped&#8221;<\/p>\n<p>ignore-archive<br \/>\n&#8220;%s: file is the archive; not dumped&#8221;<\/p>\n<p>file-removed<br \/>\n&#8220;%s: File removed before we read it&#8221;<\/p>\n<p>file-changed<br \/>\n&#8220;%s: file changed as we read it&#8221;<\/p>\n<p>Keywords applicable for tar &#8211;extract:<\/p>\n<p>existing-file<br \/>\n&#8220;%s: skipping existing file&#8221;<\/p>\n<p>timestamp<br \/>\n&#8220;%s: implausibly old time stamp %s&#8221;<br \/>\n&#8220;%s: time stamp %s is %s s in the future&#8221;<\/p>\n<p>contiguous-cast<br \/>\n&#8220;Extracting contiguous files as regular files&#8221;<\/p>\n<p>symlink-cast<br \/>\n&#8220;Attempting extraction of symbolic links as hard<br \/>\nlinks&#8221;<\/p>\n<p>unknown-cast<br \/>\n&#8220;%s: Unknown file type &#8216;%c&#8217;, extracted as normal<br \/>\nfile&#8221;<\/p>\n<p>ignore-newer<br \/>\n&#8220;Current %s is newer or same age&#8221;<\/p>\n<p>unknown-keyword<br \/>\n&#8220;Ignoring unknown extended header keyword &#8216;%s'&#8221;<\/p>\n<p>decompress-program<br \/>\nControls verbose description of failures occur\u2010<br \/>\nring when trying to run alternative decompressor<br \/>\nprograms.\u00a0 This warning is disabled by default<br \/>\n(unless &#8211;verbose is used).\u00a0 A common example of<br \/>\nwhat you can get when using this warning is:<\/p>\n<p>$ tar &#8211;warning=decompress-program -x -f archive.Z<br \/>\ntar (child): cannot run compress: No such file or directory<br \/>\ntar (child): trying gzip<\/p>\n<p>This means that tar first tried to decompress<br \/>\narchive.Z using compress, and, when that failed,<br \/>\nswitched to gzip.<\/p>\n<p>record-size<br \/>\n&#8220;Record size = %lu blocks&#8221;<\/p>\n<p>Keywords controlling incremental extraction:<\/p>\n<p>rename-directory<br \/>\n&#8220;%s: Directory has been renamed from %s&#8221;<br \/>\n&#8220;%s: Directory has been renamed&#8221;<\/p>\n<p>new-directory<br \/>\n&#8220;%s: Directory is new&#8221;<\/p>\n<p>xdev\u00a0\u00a0 &#8220;%s: directory is on a different device: not<br \/>\npurging&#8221;<\/p>\n<p>bad-dumpdir<br \/>\n&#8220;Malformed dumpdir: &#8216;X&#8217; never used&#8221;<\/p>\n<p>-w, &#8211;interactive, &#8211;confirmation<br \/>\nAsk for confirmation for every action.<\/p>\n<p>Compatibility options<br \/>\n-o\u00a0\u00a0\u00a0\u00a0 When creating, same as &#8211;old-archive.\u00a0 When extracting,<br \/>\nsame as &#8211;no-same-owner.<\/p>\n<p>Size suffixes<br \/>\nSuffix\u00a0\u00a0\u00a0 Units\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Byte Equivalent<br \/>\nb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 512<br \/>\nB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Kilobytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024<br \/>\nc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Bytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE<br \/>\nG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Gigabytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024^3<br \/>\nK\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Kilobytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024<br \/>\nk\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Kilobytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024<br \/>\nM\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Megabytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024^2<br \/>\nP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Petabytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024^5<br \/>\nT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Terabytes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 1024^4<br \/>\nw\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Words\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE x 2<\/p>\n<p>RETURN VALUE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Tar exit code indicates whether it was able to successfully<br \/>\nperform the requested operation, and if not, what kind of<br \/>\nerror occurred.<\/p>\n<p>0\u00a0\u00a0\u00a0\u00a0\u00a0 Successful termination.<\/p>\n<p>1\u00a0\u00a0\u00a0\u00a0\u00a0 Some files differ.\u00a0 If tar was invoked with the<br \/>\n&#8211;compare (&#8211;diff, -d) command line option, this means<br \/>\nthat some files in the archive differ from their disk<br \/>\ncounterparts.\u00a0 If tar was given one of the &#8211;create,<br \/>\n&#8211;append or &#8211;update options, this exit code means that<br \/>\nsome files were changed while being archived and so the<br \/>\nresulting archive does not contain the exact copy of<br \/>\nthe file set.<\/p>\n<p>2\u00a0\u00a0\u00a0\u00a0\u00a0 Fatal error.\u00a0 This means that some fatal, unrecoverable<br \/>\nerror occurred.<\/p>\n<p>If a subprocess that had been invoked by tar exited with a<br \/>\nnonzero exit code, tar itself exits with that code as well.<br \/>\nThis can happen, for example, if a compression option (e.g.<br \/>\n-z) was used and the external compressor program failed.<br \/>\nAnother example is rmt failure during backup to a remote<br \/>\ndevice.<\/p>\n<p>SEE ALSO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>bzip2(1), compress(1), gzip(1), lzma(1), lzop(1), rmt(8),<br \/>\nsymlink(7), tar(5), xz(1).<\/p>\n<p>Complete tar manual: run info tar or use emacs(1) info mode to<br \/>\nread it.<\/p>\n<p>Online copies of GNU tar documentation in various formats can<br \/>\nbe found at:<\/p>\n<p>http:\/\/www.gnu.org\/software\/tar\/manual<\/p>\n<p>BUG REPORTS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Report bugs to &lt;bug-tar@gnu.org&gt;.<\/p>\n<p>COPYRIGHT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Copyright \u00a9 2013 Free Software Foundation, Inc.<br \/>\nLicense GPLv3+: GNU GPL version 3 or later<br \/>\n&lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;<br \/>\nThis is free software: you are free to change and redistribute<br \/>\nit.\u00a0 There is NO WARRANTY, to the extent permitted by law.<\/p>\n<p>COLOPHON\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>This page is part of the tar (an archiver program) project.<br \/>\nInformation about the project can be found at<br \/>\n\u27e8http:\/\/savannah.gnu.org\/projects\/tar\/\u27e9.\u00a0 If you have a bug<br \/>\nreport for this manual page, see<br \/>\n\u27e8http:\/\/savannah.gnu.org\/bugs\/?group=tar\u27e9.\u00a0 This page was<br \/>\nobtained from the project&#8217;s upstream Git repository<br \/>\n(git:\/\/git.savannah.gnu.org\/tar.git) on 2014-12-30.\u00a0 If you<br \/>\ndiscover any rendering problems in this HTML version of the<br \/>\npage, or you believe there is a better or more up-to-date<br \/>\nsource for the page, or you have corrections or improvements<br \/>\nto the information in this COLOPHON (which is not part of the<br \/>\noriginal manual page), send a mail to\u00a0man-pages@man7.org<\/p>\n<p>TAR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 August 16, 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAR(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TAR(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GNU TAR Manual\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAR(1) NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top tar &#8211; an archiving utility SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top Traditional usage tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG&#8230;] UNIX-style usage tar -A [OPTIONS] ARCHIVE ARCHIVE tar -c [-f ARCHIVE] [OPTIONS] [FILE&#8230;] tar -d [-f ARCHIVE] [OPTIONS] [FILE&#8230;] tar -t [-f ARCHIVE] [OPTIONS] [MEMBER&#8230;] tar -r [-f ARCHIVE] [OPTIONS] [FILE&#8230;] tar -u [-f ARCHIVE] [OPTIONS] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=365"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/365\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}