tar ignores the --exclude-caches option when --listed-incremental is used:

$ tar --version
tar (GNU tar) 1.16
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

$ tar -cv --exclude-caches -f /tmp/xx.tar /tmp/xx
tar: Removing leading `/' from member names
/tmp/xx/
/tmp/xx/cache/
tar: /tmp/xx/cache/: contains a cache directory tag; not dumped
/tmp/xx/work/
/tmp/xx/work/fff

$ tar -cv --exclude-caches --listed-incremental=/tmp/snapshot -f /tmp/xx.tar 
/tmp/xx
tar: /tmp/xx/cache: Directory is new
tar: /tmp/xx/work: Directory is new
tar: Removing leading `/' from member names
/tmp/xx/
/tmp/xx/cache/
/tmp/xx/work/
/tmp/xx/cache/CACHEDIR.TAG
/tmp/xx/cache/dddd
/tmp/xx/work/fff


The system is GNU/Linux, Ubuntu 7.04, x86


Reply via email to