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.

-- 
Zanardi2k3

"Why do i need you, feet, when i have wings to fly?"
(Frida Kahlo)

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

Reply via email to