Re: Advanced tar question

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 29 February 2004 10:28 pm, Lars Kellogg-Stedman wrote:

Ahhhh...I get it now.  I have to create a text file with the directories 
listed in it, and refer tar to the file.  Thanks!

> In the first place, you can just pass --exclude multiple times, but
> this quickly grows tiresome.  There's a better way.
>
>  From the command line, type:
>
>    $ info tar
>
> This will bring up the tar documentation.  Search for "exclude" (type
> '/exclude<return>').  You may have to repeat this step.  You'll find:
>
> `--exclude-from=FILE'
> `-X FILE'
>       Similar to `--exclude', except `tar' will use the list of patterns
>       in the file FILE.
>
> I suspect this is what you want.
>
> -- Lars
>
> On Feb 29, 2004, at 5:53 PM, Charles Howse wrote:
> > How can I pass a *list* of excluded *directories* to tar?  Would it be
> > delimited by whitespace, comma, quoted or what?  I'll ultimately want
> > to
> > create this list as a variable.

- -- 
Charles Howse
Jackson, TN
Registered Linux user # 347576 (http://counter.li.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAQtbS/S+VsB9RMKgRAkZ/AJ93ytTzitZ2y9bWKJceRIcm1mQSZACggaIT
xLlDEAmReO99wxFyBjLBeUs=
=8FpV
-----END PGP SIGNATURE-----




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux