On Tue, Sep 05, 2023 at 08:36:00PM +0200, Alan McKinnon wrote > > Try it and see. My concern is that the man page implies that with > --exclude-caches-under the subdirectories are excluded recursively, > but the directory with the file called CACHEDIR.TAG is not. I'm sure > that's wrong but the man page says what it says.
Starting off with... [x8940][waltdnes][~] ll .cache total 68 drwx------ 12 waltdnes users 4096 Sep 5 17:45 . drwxr-xr-x 141 waltdnes users 20480 Sep 5 18:38 .. -rw-r--r-- 1 waltdnes users 44 Sep 5 17:42 CACHEDIR.TAG drwx------ 2 waltdnes users 4096 Aug 29 15:34 babl drwxr-xr-x 2 waltdnes users 4096 Sep 5 08:52 fontconfig drwxr-xr-x 3 waltdnes users 4096 Jun 11 2021 geeqie drwx------ 3 waltdnes users 4096 May 29 2021 gegl-0.4 drwxr-xr-x 3 waltdnes users 4096 May 29 2021 gimp drwx------ 3 waltdnes users 4096 May 27 2021 google-chrome drwx------ 2 waltdnes users 4096 Sep 5 10:23 mc drwxr-xr-x 258 waltdnes users 4096 Mar 24 2022 mesa_shader_cache drwx------ 3 waltdnes users 4096 Sep 5 17:12 'moonchild productions' drwx------ 3 waltdnes users 4096 Nov 16 2021 thumbnails tar --exclude-caches -cvzf x1.tgz .cache ...archives the following... drwx------ waltdnes/users 0 2023-09-05 17:45 .cache/ -rw-r--r-- waltdnes/users 44 2023-09-05 17:42 .cache/CACHEDIR.TAG tar --exclude-caches-all -cvzf x2.tgz .cache ...archives absolutely nothing; zip... zilch... nada tar --exclude-caches-under -cvzf x3.tgz .cache ...archives... drwx------ waltdnes/users 0 2023-09-05 17:45 .cache/ I'll gladly take any of them. One more thing; in this mode, you *MUST* use a leading minus for "-cvzf". The lazy "cvzf" will *NOT* work, and throws a misleading error message. See also my post to Michael about the contents of the CACHEDIR.TAG file. -- I've seen things, you people wouldn't believe; Gopher, Netscape with frames, the first Browser Wars. Searching for pages with AltaVista, pop-up windows self-replicating, trying to uninstall RealPlayer. All those moments, will be lost in time like tears in rain... time to die.