| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 | README for GNU tarSee the end of file for copying conditions.* IntroductionPlease glance through *all* sections of this'README' file before starting configuration.  Also make sure you read files'ABOUT-NLS' and 'INSTALL' if you are not familiar with them already.If you got the 'tar' distribution in 'shar' format, time stamps ought to beproperly restored; do not ignore such complaints at 'unshar' time.GNU 'tar' saves many files together into a single tape or diskarchive, and can restore individual files from the archive.  It includesmultivolume support, the ability to archive sparse files, automatic archivecompression/decompression, remote archives and special features that allow'tar' to be used for incremental and full backups.  This distributionalso includes 'rmt', the remote tape server.  The 'mt' tape drive controlprogram is in the GNU 'cpio' distribution.GNU 'tar' is derived from John Gilmore's public domain 'tar'.See file 'ABOUT-NLS' for how to customize this program to your language.See file 'COPYING' for copying conditions.See file 'INSTALL' for compilation and installation instructions.See file 'NEWS' for a list of major changes in the current release.See file 'THANKS' for a list of contributors.Besides those configure options documented in files 'INSTALL' and'ABOUT-NLS', an extra option may be accepted after './configure':* Install** Selecting the default archive format.The default archive format is GNU, this can be overridden bypresetting DEFAULT_ARCHIVE_FORMAT while configuring. The allowedvalues are GNU, V7, OLDGNU, USTAR and POSIX.** Selecting the default archive deviceThe default archive device is now 'stdin' on read and 'stdout' on write.The installer can still override this by presetting 'DEFAULT_ARCHIVE'in the environment before configuring (the behavior of '-[0-7]' or'-[0-7]lmh' options in 'tar' are then derived automatically).  Similarly,'DEFAULT_BLOCKING' can be preset to something else than 20.** Selecting full pathname of the "rmt" binary.Previous versions of tar always looked for "rmt" binary in thedirectory "/etc/rmt". However, the "rmt" program includedin the distribution was installed under "$prefix/libexec/rmt".To fix this discrepancy, tar now looks for "$prefix/libexec/rmt".If you do not want this behavior, specify full path name of"rmt" binary using DEFAULT_RMT_DIR variable, e.g.:./configure DEFAULT_RMT_DIR=/etcIf you already have a copy of "rmt" installed and wish to use itinstead of the version supplied with the distribution, use --with-rmtoption:./configure --with-rmt=/etc/rmtThis will also disable building the included version of rmt.** Installing backup scripts.This version of tar is shipped with the shell scripts for producingincremental backups (dumps) and restoring filesystems from them.The name of the backup script is "backup". The name of therestore script is "restore". They are installed in "$prefix/sbin"directory.Use option --enable-backup-scripts to compile and install thesescripts.** '--disable-largefile' omits support for large files, even if theoperating system supports large files.  Typically, large files arethose larger than 2 GB on a 32-bit host.* Installation hintsHere are a few hints which might help installing 'tar' on some systems.** gzip and bzip2.GNU tar uses the gzip and bzip2 programs to read and write compressedarchives.  If you don't have these programs already, you need toinstall them.  Their sources can be found at:ftp://ftp.gnu.org/gnu/gzip/http://sourceware.cygnus.com/bzip2/If you see the following symptoms:   $ tar -xzf file.tar.gz   gzip: stdin: decompression OK, trailing garbage ignored   tar: Child returned status 2then you have encountered a gzip incompatibility that should be fixedin gzip test version 1.3, which as of this writing is available at<ftp://alpha.gnu.org/gnu/gzip/>.  You can work around theincompatibility by using a shell command like 'gzip -d <file.tar.gz | tar -xzf -'.** Solaris issues.GNU tar exercises many features that can cause problems with older GCCversions.  In particular, GCC 2.8.1 (sparc, -O1 or -O2) is known tomiscompile GNU tar.  No compiler-related problems have been reportedwhen using GCC 2.95.2 or later.Recent versions of Solaris tar sport a new -E option to generateextended headers in an undocumented format.  GNU tar does notunderstand these headers.** Static linking.Some platform will, by default, prepare a smaller 'tar' executablewhich depends on shared libraries.  Since GNU 'tar' may be used forsystem-level backups and disaster recovery, installers might prefer toforce static linking, making a bigger 'tar' executable maybe, but able towork standalone, in situations where shared libraries are not available.The way to achieve static linking varies between systems.  Set LDFLAGSto a value from the table below, before configuration (see 'INSTALL').	Platform	Compiler	LDFLAGS	(any)		Gnu C		-static	AIX		(vendor)	-bnso -bI:/lib/syscalls.exp	HPUX		(vendor)	-Wl,-a,archive	IRIX		(vendor)	-non_shared	OSF		(vendor)	-non_shared	SCO 3.2v5	(vendor)	-dn	Solaris		(vendor)	-Bstatic	SunOS		(vendor)	-Bstatic** Failed tests 'ignfail.sh' or 'incremen.sh'.In an NFS environment, lack of synchronization between machine clocksmight create difficulties to any tool comparing dates and file time stamps,like 'tar' in incremental dumps.  This has been a recurrent problem withGNU Make for the last few years.  We would like a general solution.** BSD compatibility matters.Set LIBS to '-lbsd' before configuration (see 'INSTALL') if the linkercomplains about 'bsd_ioctl' (Slackware).  Also set CPPFLAGS to'-I/usr/include/bsd' if <sgtty.h> is not found (Slackware).** OPENStep 4.2 swap filesTar cannot read the file /private/vm/swapfile.front (even as root).This file is not a real file, but some kind of uncompressed view ofthe real compressed swap file; there is no reason to back it up, sothe simplest workaround is to avoid tarring this file.* Special topicsHere are a few special matters about GNU 'tar', not related to buildmatters.  See previous section for such.** File attributes.About *security*, it is probable that future releases of 'tar' will havesome behavior changed.  There are many pending suggestions to choose from.Today, extracting an archive not being 'root', 'tar' will restore suid/sgidbits on files but owned by the extracting user.  'root' automatically getsa lot of special privileges, '-p' might later become required to get them.GNU 'tar' does not properly restore symlink attributes.  Various systemsimplement flavors of symbolic links showing different behavior andproperties.  We did not successfully sorted all these out yet.  Currently,the 'lchown' call will be used if available, but that's all.** POSIX compliance.GNU 'tar' is able to create archive in the following formats:  *** The format of UNIX version 7  *** POSIX.1-1988 format, also known as "ustar format"  *** POSIX.1-2001 format, also known as "pax format"  *** Old GNU format (described below)In addition to those, GNU 'tar' is also able to read archivesproduced by 'star' archiver.A so called 'Old GNU' format is based on an early draft of thePOSIX 1003.1 'ustar' standard which is different from the finalstandard. It defines its extensions (such as incremental backupsand handling of the long file names) in a way incompatible withany existing tar archive format, therefore the use of old GNUformat is strongly discouraged.Please read the file NEWS for more information about POSIX complianceand new 'tar' features.* What's next?GNU tar will be merged into GNU paxutils: a project containingseveral utilities related to creating and handling archives invarious formats. The project will include tar, cpio and paxutilities.* Bug reporting.Send bug reports to <bug-tar@gnu.org>.  A bug report should containan adequate description of the problem, your input, what you expected,what you got, and why this is wrong.  Diffs are welcome, but they onlydescribe a solution, from which the problem might be uneasy to infer.If needed, submit actual data files with your report.  Small data filesare preferred.  Big files may sometimes be necessary, but do not send themto the report address; rather take special arrangement with the maintainer.Your feedback will help us to make a better and more portable package.Consider documentation errors as bugs, and report them as such.  If youdevelop anything pertaining to 'tar' or have suggestions, let us knowand share your findings by writing to <bug-tar@gnu.org>.* CopyingCopyright 1990-2023 Free Software Foundation, Inc.This file is part of GNU tar.GNU tar is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 3 of the License, or(at your option) any later version.GNU tar is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program.  If not, see <http://www.gnu.org/licenses/>.NOTE ON COPYRIGHT YEARSIn copyright notices where the copyright holder is the Free SoftwareFoundation, then where a range of years appears, this is an inclusiverange that applies to every year in the range.  For example: 2005-2008represents the years 2005, 2006, 2007, and 2008.Local Variables:mode: outlineparagraph-separate: "[	]*$"version-control: neverEnd:
 |