tar works recursively when given directory names and your filename list has both the directory name and list of files so it does them all twice
you'll need to remove the dir name from your file list (or the list of files if it is all files in the dir you want would also work) On 10/30/06, [EMAIL PROTECTED]
Really don't know if it's a bug or if we are using the tar command in the wrong way ! We are using the tar command when archiving quite a lot (70.000 - 150.000 ) of files and all filenames are stored in a text-file which are used as input to the tar command. It seems like its working fine but somehow the files are stored twice in the archive (but not directory entries) Platform are: HP-UX 11.23 Itanium Tar version: 1.15.1 Command running. tar cf msg_log_archive -T filenames Are there any additional argument that we are missing or is it the tar that are generating something incorrect here. A short example output from a simple test. $ux9h20:/tmp/dennis> cat filenames /var/tmp/dennis /var/tmp/dennis/slask1 /var/tmp/dennis/slask2 /var/tmp/dennis/slask3 $ux9h20:/tmp/dennis> gtar cf msg_log_archive -T filenames gtar: Removing leading `/' from member names $ux9h20:/tmp/dennis> gtar tvf msg_log_archive drwxr-xr-x xib/xib 0 2006-10-25 13:50:34 var/tmp/dennis/ -rw-r--r-- xib/xib 10876 2006-10-25 13:50:18 var/tmp/dennis/slask1 -rw-r--r-- xib/xib 82500 2006-10-25 13:50:26 var/tmp/dennis/slask2 -rw-r--r-- xib/xib 1361 2006-10-25 13:50:34 var/tmp/dennis/slask3 -rw-r--r-- xib/xib 10876 2006-10-25 13:50:18 var/tmp/dennis/slask1 -rw-r--r-- xib/xib 82500 2006-10-25 13:50:26 var/tmp/dennis/slask2 -rw-r--r-- xib/xib 1361 2006-10-25 13:50:34 var/tmp/dennis/slask3 Hälsningar/Kind regards, Dennis Hansson Tdirector Integration Services & Development TietoEnator Digital Innovations Direct +46 910 82271 Mobile +46 70 268 2271 Fax +46 910 56985 E-mail [EMAIL PROTECTED] Kyrkgränd 5 SE-931 27 Skellefteå www.tietoenator.com Are you prepared for the revolution? Read the latest http://www.tietoenator.com/urge _______________________________________________ bug-tar mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-tar
-- The difference between men and women is simple: A man falls in love with a woman he is attracted to, a woman becomes attracted to a man she fell in love with.
