Are there bugs in gnutar when using -N with -X?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com This one is a little confusing to me So what I don't understand is why this has the correct semantics when gnuxpat2 contains nothing. but lets say I put in .Spotlight-V100 as the very first line Now when I have that as the first line and I execute the following. Doesn't make sense to me. ./ ._.DS_Store .DS_Store ._.hidden ._.hotfiles.btree ._.RegisterApplications.ted.tbu ._.TemporaryItems .TemporaryItems/ .TemporaryItems/folders.0/ .TemporaryItems/folders.0/TemporaryItems/ ._.Trashes .Trashes/ .Trashes/._501 .Trashes/501/ .vol/ .vol/234881026/ .vol/234881036/ Applications/ Here's what I mean. annie:/tmp robert$ cat bla */*.txt so .txt files should be excluded annie:/tmp robert$ ls -al /tmp/now -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 /tmp/now annie:/tmp robert$ ls -al /tmp/test total 0 drwxr-xr-x 8 robert wheel 272 Mar 4 21:46 . drwxrwxrwt 418 root wheel 14212 Mar 4 23:05 .. -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 1 -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 2 -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 3 -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 4 -rw-r--r-- 1 robert wheel 0 Mar 4 21:24 5 drwxr-xr-x 2 robert wheel 68 Mar 4 21:46 6.txt gnutar cvf test1.tar -N /tmp/now -X /tmp/bla test test/ test/4 test/5 So it all works when you break it down into a simple example like this. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... /usr/bin/gnutar -cvf /Volumes/External/BRUBackups/annie/ backup-20060304-3.tar --show-omitted-dirs -X /usr/local/bruconfig/ gnuxpat2 -N /var/backup/BACKUP-0 / /usr/bin/gnutar -cvf /Volumes/External/BRUBackups/annie/ backup-20060304-3.tar --show-omitted-dirs -X /usr/local/bruconfig/ gnuxpat2 -N /var/backup/BACKUP-0 / it will no longer be an "incremental backup" but it will be a full backup. Note: the exclusion is obeyed. ie. not Spotlight-V100 folder but it's adding stuff in the tar that has a mtime longer before the mtime of the BACKUP-0 file. Strangely enough when I break this down to simple trivial example everything works as expected. these are the two files that were created after the file /tmp/now was created and notice the 6.txt was correctly excluded. annie:/usr/local/bruconfig robert$ gnutar --version tar (GNU tar) 1.14 Copyright (C) 2004 Free Software Foundation, Inc. This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute it under the terms of the GNU General Public License; see the file named COPYING for details. Written by John Gilmore and Jay Fenlason. Modified to support extended attributes. This email sent to site_archiver@lists.apple.com
participants (1)
-
Robert Nicholson