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:
`tar -zcf $filename $DEST`;
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating Tarballs in a perl scripts
by morgon (Priest) on Jun 11, 2012 at 15:55 UTC | |
by Lotus1 (Vicar) on Jun 11, 2012 at 19:39 UTC | |
by rovf (Priest) on Jun 12, 2012 at 08:36 UTC | |
by mdw1982 (Initiate) on Jun 12, 2012 at 16:54 UTC | |
by morgon (Priest) on Jun 12, 2012 at 17:48 UTC | |
|
Re: Creating Tarballs in a perl scripts
by zentara (Cardinal) on Jun 11, 2012 at 17:03 UTC | |
by stevieb (Canon) on Jun 11, 2012 at 17:29 UTC | |
|
Re: Creating Tarballs in a perl scripts
by rovf (Priest) on Jun 11, 2012 at 15:36 UTC | |
|
Re: Creating Tarballs in a perl scripts
by Illuminatus (Curate) on Jun 11, 2012 at 16:16 UTC | |
by aaron_baugher (Curate) on Jun 11, 2012 at 20:53 UTC |