We don't bite newbies here... much | |
PerlMonks |
Creating Tarballs in a perl scriptsby mdw1982 (Initiate) |
on Jun 11, 2012 at 14:54 UTC ( [id://975584]=perlquestion: print w/replies, xml ) | Need Help?? |
mdw1982 has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, I've got a problem with a program I wrote a few years back - a backup program - that works fairly well and is maturing, however it does have a problem. One of the things this program does is create TGZ archives. The problem I'm having, and I have yet to find a solution to this vexing issue, is that no matter what I do it will not grab .hidden files. I've tried altering the manner in which I issue the command to create the archive within the program; I've tried using the Tar module; I've tried turning on and off the BASH command to allow .hidden files to be scooped up, but all with no joy. The command I'm using and have embedded in the program is this:
It does a wonderful job of grabbing everything in the directory it's working in: all the directories its supposed to backup are kept in a database which it reads each time the program runs and loads the directory paths into an array. For the life of me I can't understand why it is not getting the hidden files. When I run the command from the command line all files are archived as expected including the .hidden files. Can anyone shed some light on this vexing problem for me?
Back to
Seekers of Perl Wisdom
|
|