For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2005 > Archive_Tar exclude subdirectory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Archive_Tar exclude subdirectory
Leon Kyneur

2005-03-30, 8:57 pm

Just wondering if you can exclude specific subdirectories with Archive_Tar.

Like using tar from the command line you would do this:
tar -czvf --exclude=/foo/bar foo.tar.gz /foo

excluding the 'bar' directory from the archive of /foo, i'm interested
to know if this can be done using this PEAR class.

Many Thanks,

Leon
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com