not sure about Archive::Tar...but here's the command
line, you can call this in your perl script.

"tar czf ./test.tar.gz ./backups --files-from
./include.txt"

If you wanted to include only *.pl, just put "*.pl" in
your include.txt file. (same goes for exclusion, use
--exlude-from instead)

--- [EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> I am trying to use the following program to archive
> directories of large
> files but I can not get any wildcard combination to
> work:
> 
> #!/usr/bin/perl
> use Archive::Tar;
> 
> Archive::Tar->create_archive ("test.tar", 9,
> "backup/*.*");
> print join "\n", Archive::Tar->list_archive
> ("test.tar"), "";
> 
> How can I get this to tar the entire backup
> directory? And if I wanted to
> say pic out all file based on extensions later on
> like .pl *.pl how to do
> that as well with this?
> 
> Thanks,
> John
> 


__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

Reply via email to