in reply to Re: Archive::Tar- how do I tar a whole directory tree
in thread Archive::Tar- how do I tar a whole directory tree
TIMTOWTDI
A simple way is the command line code:
#!/usr/bin/perl use strict; my $destination = "Archive_filename_to_be_created"; my $source = "/home/users/billyjo/stuff_to_backup/"; my $cmd = `tar -cpf $destination $source`; ####### The line above uses the backtick operation, not single quotes! + ##########
As far as using the Archive::Tar module, (RTFM) :-)
- f o o g o d
|
|---|