Date: Mon, 24 Oct 2016 14:07:30 +0200 From: Patrick Lamaiziere <patfbsd@davenulle.org> To: freebsd-questions@freebsd.org Subject: (10.3) tar --exclude Message-ID: <20161024140730.3b535af3@mr185083>
next in thread | raw e-mail | index | archive | help
Hello, 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 etc/periodic/daily/110.clean-tmps etc/rc.d/cleartmp 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. Thanks, regards.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161024140730.3b535af3>