Zanardi2k3 wrote:
>
> Hello, not a technical problem, i'm just looking for opinions.
>
> Using "Archive::Zip", i made a script with the main purpose of making a
> quick backup of a folder and all its subfolders in a zip file.
>
> The script can take a few parameters:
> - the main folder backup (mandatory);
> - the full path of the destination zip file (mandatory);
> - filename pattern (regex) of files to include;
> - min or max modified age of files to include;
> - a "delete" flag that tell the script if it has to unlink the files
> after archiving.
>
> Since we have many folders with many small text files, now i want to use
> it to compress older files and delete them from disks, so that they're
> still available for a while, but don't take as much space as before.
>
> That poses the problem of executing my script for several folders, with
> different parameters for each of them. Now i'm wondering if i have to
> include the possibility of multiple "backups" in the script itself, if i
> better write another script that calls this one with different parameters
> each time, or if i better make a module of my original script (though it
> seems too much, since it's not code reuse but just script relaunching).
>
> I'd like to know your thoughts about this.

Hi Zanardi2k3. :)

Your question is too long. For that reason you will get fewer
answers. My advice is to repost with more code and
environmental details and less explanation. We don't need to know
'why' or 'how' but only 'what' to help :)

My first answer would be to recode what you already have to perform
the new task. I doubt that making modules would help, but I would
discourage calling one Perl script from another.

More help when you can identify a problem!

HTH,

Rob







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to