[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Tar ---exclude-from

From: Nathan Stratton Treadway
Subject: Re: GNU Tar ---exclude-from
Date: Mon, 23 Aug 2021 12:30:01 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Sun, Aug 22, 2021 at 13:58:48 -0400, Robert Murphy wrote:
> I am having trouble with the --exclude-from option in version 1.13.  It
> appears --exclude-from does not work.  Below is the command line I am using
> and multiple --exclude-from file(s).
> tar -c  -f x9.tar -v  --exclude-from=xx.txt   *.*
> file xx.txt
> *.cache

I believe this is the format you want to use in your xx.txt file (i.e.
plain file glob pattern on each line, with no quote characters).

When you say "--exclude-from does not work", I take it you mean that the
files you are trying to exclude are still getting included in the

What operating system are you using, and what's the exact version of tar

>From the changelog/new files it looks like very early versions in the
1.13 range do NOT exclude files that are listed explicitly on the
command line, even if they do match the exclude pattern.... so: does the
exclude work if you specify a directory name (e.g. ".") rather than
"*.*" on the tar command line?


Nathan Stratton Treadway  -  nathanst@ontko.com  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239

reply via email to

[Prev in Thread] Current Thread [Next in Thread]