When excluding directories to be tarred with GNU Tar, a slash after the directory name makes the exclude fail:
$ mkdir a $ mkdir a/bigfiles $ mkdir b $ echo 12345 > a/1.txt $ echo 67890 > a/2.txt $ echo nice > a/3.txt $ echo "This is a big file\!" > a/bigfiles/big.txt $ tar -czf backup.tgz a/ --exclude a/bigfiles/ $ mv backup.tgz b $ cd b/ $ tar -xzf backup.tgz $ tree a/ a/ ├── 1.txt ├── 2.txt ├── 3.txt └── bigfiles └── big.txt The same test but without the trailing slash on "a/bigfiles" properly excludes the bigfiles directory. In my opinion this is a bug as it is in contrast to other GNU tools such as cp which do accept a trailing slash. Furthermore, Bash filename completion adds the trailing slash so it is intuitive that the command will include it. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com