BenRussell
Programmer
I am using Archive::Tar to make a backup of some files and directories on my server. This works fine:
IF, SOMEFILE is actually a file and not a directory.
However, when I try to add a directory like so:
It does not work. Any ideas on how to add a directory to the archive?
- Ben
Code:
$archive->add_files("/etc/SOMEFILE");
IF, SOMEFILE is actually a file and not a directory.
However, when I try to add a directory like so:
Code:
$archive->add_files("/etc/SOMEDIRECTORY");
It does not work. Any ideas on how to add a directory to the archive?
- Ben