Tyson Tucker <tyson.tuc...@gmail.com> ha escrit: > I haven't figured out what makes the duplicate files/directories > special, but some are duplicated up to three times in the tar file. > I've tested it on versions 1.17 and 1.22 on Solaris and 1.22 on Linux. > To reproduce: > find /usr/local/lib /usr/local/share > test_file
The output from `find' includes both directories and files in them. When a directory name appears in the file list, tar adds to the archive this directory and all files (including subdirectories) in it. Therefore, the resulting archive will contain N copies of each file, where N is the number of directories in the file's full name. To fix this, either tighten your find conditions (e.g. -type f), or give the --no-recursion option to tar. For more info, see http://www.gnu.org/software/tar/manual/html_node/recurse.html Regards, Sergey