README 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. README for GNU tar
  2. See the end of file for copying conditions.
  3. * Introduction
  4. Please glance through *all* sections of this
  5. `README' file before starting configuration. Also make sure you read files
  6. `ABOUT-NLS' and `INSTALL' if you are not familiar with them already.
  7. If you got the `tar' distribution in `shar' format, time stamps ought to be
  8. properly restored; do not ignore such complaints at `unshar' time.
  9. GNU `tar' saves many files together into a single tape or disk
  10. archive, and can restore individual files from the archive. It includes
  11. multivolume support, the ability to archive sparse files, automatic archive
  12. compression/decompression, remote archives and special features that allow
  13. `tar' to be used for incremental and full backups. This distribution
  14. also includes `rmt', the remote tape server. The `mt' tape drive control
  15. program is in the GNU `cpio' distribution.
  16. GNU `tar' is derived from John Gilmore's public domain `tar'.
  17. See file `ABOUT-NLS' for how to customize this program to your language.
  18. See file `COPYING' for copying conditions.
  19. See file `INSTALL' for compilation and installation instructions.
  20. See file `PORTS' for various ports of GNU tar to non-Unix systems.
  21. See file `NEWS' for a list of major changes in the current release.
  22. See file `THANKS' for a list of contributors.
  23. Besides those configure options documented in files `INSTALL' and
  24. `ABOUT-NLS', an extra option may be accepted after `./configure':
  25. * Install
  26. ** Selecting the default archive format.
  27. The default archive format is GNU, this can be overridden by
  28. presetting DEFAULT_ARCHIVE_FORMAT while configuring. The allowed
  29. values are GNU, V7, OLDGNU, USTAR and POSIX.
  30. ** Selecting the default archive device
  31. The default archive device is now `stdin' on read and `stdout' on write.
  32. The installer can still override this by presetting `DEFAULT_ARCHIVE'
  33. in the environment before configuring (the behavior of `-[0-7]' or
  34. `-[0-7]lmh' options in `tar' are then derived automatically). Similarly,
  35. `DEFAULT_BLOCKING' can be preset to something else than 20.
  36. ** `--disable-largefile' omits support for large files, even if the
  37. operating system supports large files. Typically, large files are
  38. those larger on 2 GB on a 32-bit host.
  39. * Installation hints
  40. Here are a few hints which might help installing `tar' on some systems.
  41. ** gzip and bzip2.
  42. GNU tar uses the gzip and bzip2 programs to read and write compressed
  43. archives. If you don't have these programs already, you need to
  44. install them. Their sources can be found at:
  45. ftp://ftp.gnu.org/gnu/gzip/
  46. http://sourceware.cygnus.com/bzip2/
  47. If you see the following symptoms:
  48. $ tar -xzf file.tar.gz
  49. gzip: stdin: decompression OK, trailing garbage ignored
  50. tar: Child returned status 2
  51. then you have encountered a gzip incompatibility that should be fixed
  52. in gzip test version 1.3, which as of this writing is available at
  53. <ftp://alpha.gnu.org/gnu/gzip/>. You can work around the
  54. incompatibility by using a shell command like
  55. `gzip -d <file.tar.gz | tar -xzf -'.
  56. ** Solaris issues.
  57. GNU tar exercises many features that can cause problems with older GCC
  58. versions. In particular, GCC 2.8.1 (sparc, -O1 or -O2) is known to
  59. miscompile GNU tar. No compiler-related problems have been reported
  60. when using GCC 2.95.2 or later.
  61. Recent versions of Solaris tar sport a new -E option to generate
  62. extended headers in an undocumented format. GNU tar does not
  63. understand these headers.
  64. ** Static linking.
  65. Some platform will, by default, prepare a smaller `tar' executable
  66. which depends on shared libraries. Since GNU `tar' may be used for
  67. system-level backups and disaster recovery, installers might prefer to
  68. force static linking, making a bigger `tar' executable maybe, but able to
  69. work standalone, in situations where shared libraries are not available.
  70. The way to achieve static linking varies between systems. Set LDFLAGS
  71. to a value from the table below, before configuration (see `INSTALL').
  72. Platform Compiler LDFLAGS
  73. (any) Gnu C -static
  74. AIX (vendor) -bnso -bI:/lib/syscalls.exp
  75. HPUX (vendor) -Wl,-a,archive
  76. IRIX (vendor) -non_shared
  77. OSF (vendor) -non_shared
  78. SCO 3.2v5 (vendor) -dn
  79. Solaris (vendor) -Bstatic
  80. SunOS (vendor) -Bstatic
  81. ** Failed tests `ignfail.sh' or `incremen.sh'.
  82. In an NFS environment, lack of synchronization between machine clocks
  83. might create difficulties to any tool comparing dates and file time stamps,
  84. like `tar' in incremental dumps. This has been a recurrent problem with
  85. GNU Make for the last few years. We would like a general solution.
  86. ** BSD compatibility matters.
  87. Set LIBS to `-lbsd' before configuration (see `INSTALL') if the linker
  88. complains about `bsd_ioctl' (Slackware). Also set CPPFLAGS to
  89. `-I/usr/include/bsd' if <sgtty.h> is not found (Slackware).
  90. ** OPENStep 4.2 swap files
  91. Tar cannot read the file /private/vm/swapfile.front (even as root).
  92. This file is not a real file, but some kind of uncompressed view of
  93. the real compressed swap file; there is no reason to back it up, so
  94. the simplest workaround is to avoid tarring this file.
  95. * Special topics
  96. Here are a few special matters about GNU `tar', not related to build
  97. matters. See previous section for such.
  98. ** File attributes.
  99. About *security*, it is probable that future releases of `tar' will have
  100. some behavior changed. There are many pending suggestions to choose from.
  101. Today, extracting an archive not being `root', `tar' will restore suid/sgid
  102. bits on files but owned by the extracting user. `root' automatically gets
  103. a lot of special privileges, `-p' might later become required to get them.
  104. GNU `tar' does not properly restore symlink attributes. Various systems
  105. implement flavors of symbolic links showing different behavior and
  106. properties. We did not successfully sorted all these out yet. Currently,
  107. the `lchown' call will be used if available, but that's all.
  108. ** POSIX compliance.
  109. GNU `tar' is able to create archive in the following formats:
  110. *** The format of UNIX version 7
  111. *** POSIX.1-1988 format, also known as "ustar format"
  112. *** POSIX.1-2001 format, also known as "pax format"
  113. *** Old GNU format (described below)
  114. In addition to those, GNU `tar' is also able to read archives
  115. produced by `star' archiver.
  116. A so called `Old GNU' format is based on an early draft of the
  117. POSIX 1003.1 `ustar' standard which is different from the final
  118. standard. It defines its extensions (such as incremental backups
  119. and handling of the long file names) in a way incompatible with
  120. any existing tar archive format, therefore the use of old GNU
  121. format is strongly discouraged.
  122. Please read the file NEWS for more information about POSIX compliance
  123. and new `tar' features.
  124. * What's next?
  125. In the future we will try to release tar-1.14 as soon as possible and
  126. start merging with paxutils afterwards. We'll also try to rewrite
  127. some parts of the documentation after paxutils has been merged.
  128. * Bug reporting.
  129. Send bug reports to <[email protected]>. A bug report should contain
  130. an adequate description of the problem, your input, what you expected,
  131. what you got, and why this is wrong. Diffs are welcome, but they only
  132. describe a solution, from which the problem might be uneasy to infer.
  133. If needed, submit actual data files with your report. Small data files
  134. are preferred. Big files may sometimes be necessary, but do not send them
  135. to the report address; rather take special arrangement with the maintainer.
  136. Your feedback will help us to make a better and more portable package.
  137. Consider documentation errors as bugs, and report them as such. If you
  138. develop anything pertaining to `tar' or have suggestions, let us know
  139. and share your findings by writing to <[email protected]>.
  140. * Copying
  141. Copyright (C) 1990, 1991, 1992, 1994, 1997, 1998, 1999, 2000,
  142. 2001, 2003, 2004 Free Software Foundation, Inc.
  143. This file is part of GNU tar.
  144. GNU tar is free software; you can redistribute it and/or modify
  145. it under the terms of the GNU General Public License as published by
  146. the Free Software Foundation; either version 2, or (at your option)
  147. any later version.
  148. GNU tar is distributed in the hope that it will be useful,
  149. but WITHOUT ANY WARRANTY; without even the implied warranty of
  150. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  151. GNU General Public License for more details.
  152. You should have received a copy of the GNU General Public License
  153. along with tar; see the file COPYING. If not, write to
  154. the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  155. Boston, MA 02111-1307, USA.
  156. Local Variables:
  157. mode: outline
  158. paragraph-separate: "[ ]*$"
  159. version-control: never
  160. End: