Re: Archive::Tar

2002-09-11 Thread Randy J. Ray
Most of the replies have focused on how to do this with external calls to tar or cpio, without actually addressing the original writer's problem, how to do it with Archive::Tar. The first respondent noted that Archive::Tar doesn't do wildcarding. Or, as it is called in the Perl docs

Re: Archive::Tar

2002-09-11 Thread Steven Lembark
-- "Anthony E." <[EMAIL PROTECTED]> >> 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? gnu cpio will write tar: find $dir | cpio -ov -Htar | gzip --best

Re: Archive::Tar

2002-09-11 Thread Anthony E.
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,

Re: Archive::Tar

2002-09-11 Thread Lupe Christoph
Waay offtopic. But here goes: On Wednesday, 2002-09-11 at 04:06:20 -0500, [EMAIL PROTECTED] wrote: > I am trying to use the following program to archive directories of large > files but I can not get any wildcard combination to work: Archive::Tar does not do Wildcards. > #!/usr

Archive::Tar

2002-09-11 Thread john.buwa
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", Arch