(10.3) tar --exclude
patfbsd at davenulle.org
Mon Oct 24 12:07:46 UTC 2016
Something that coold be trivial but I don't understant with tar.
# tar --exclude './tmp' -C / -cf /tmp/test.tar etc && tar -tf /tmp/test.tar | grep tmp
Why tar doesn't archive the file ./etc.rc.d/tmp ?
When using the same exclude pattern on '/' (ie : tar --exclude './tmp' -C / -cf file .),
it doesn't archive /tmp (good), but also /etc/rc.d/tmp and /var/tmp/ and I don't understand why.
More information about the freebsd-questions