[NTLUG:Discuss] Tar Exclude file question
David Camm
dcamm at advwebsys.com
Fri Feb 6 15:02:47 CST 2004
think you're going to have to bite the bullet. would seem that what tar is
looking for is an actual filename. so try this from /home/steve:
ls -1 corporate/* >excludefile.txt (that's -one, not -ell)
then do a tar and see if it works.
if it does, then do:
ls -1 downloads/* >>excludefile.txt etc. to build up the excludes file.
assuming that the contents of these directories change, one could even write a
little perl script (or shell script) to create excludefile.txt, then run the tar(s).
david camm
advanced web systems
www.advwebsys.com
Stephen Davidson wrote:
> Ed Coates wrote:
>
>>
>> On Fri, 6 Feb 2004, Stephen Davidson wrote:
>>
>>
>>
>> Steve,
>>
>> According to info tar the -X <file> will look in <file> and
>> exclude
>> all those files listed there. Either, make a file with all the
>> dirs/files
>> included in it, or maybe try the --exclude=<pattern>
>>
>>
>> Ed
>>
>> _______________________________________________
>> https://ntlug.org/mailman/listinfo/discuss
>>
>
> Tried the following;
>
> /home/steve/corporate/*
> /home/steve/downloads/*
> /home/steve/j2eeguys/*
> /home/steve/pictures/*
> /home/steve/projects/*
>
> /home/steve/corporate/
> /home/steve/downloads/
> /home/steve/j2eeguys/
> /home/steve/pictures/
> /home/steve/projects/
>
> As soon as the second line is added, tar stops working. I can't believe
> that Tar only takes one line per file!
>
> Help?
>
> Regards,
> Steve
>
More information about the Discuss
mailing list