[NTLUG:Discuss] Tar Exclude file question
Rick Cook
rcook at ntlug.org
Fri Feb 6 23:16:46 CST 2004
On Friday 06 February 2004 14:34, Stephen Davidson wrote:
>
> 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!
The exclude file has to have to directory names defined as seen by tar as
it is executing.
For example, if you are executing the tar command for the above
from /home, you would need an exclude file like:
steve/corporate
steve/download
steve/j2eeguys
steve/pictures
steve/projects
If you are up or down a directory in the tree, simply add or subtract a
level in the exclude file.
Rick
More information about the Discuss
mailing list