Not sure if this is the way it is supposed to work, but I am not sure how I can get a directory, like a web directory backed up in one step using Archive::Tar.

Code...

#!/usr/bin/perl

use strict;
use Archive::Tar;

my $bu = Archive::Tar->create_archive("www.tar",0,glob("/path/to/www/*"));

This only grabs files under www/, it doesn't touch the directories. I am still new to perl and have been looking at the Archive::Tar documentation on Cpan but it doesn't give an example of how this can be accomplished. Any help is appreciated.
Jas



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to