View Single Post
  #11 (permalink)  
Old 31st December 2008, 02:38 PM
amanuensis amanuensis is offline
Junior Member
 
Join Date: Nov 2008
OS: Debian
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
amanuensis is on a distinguished road
Default

First of all thank you for the reply.
I should try and make out what I am trying to achieve a little clearer.
I have a folder on my server named 'EVENTS' and it contains an additional 50 folders 'EVENT1', 'EVENT2', 'EVENTS3 etc, etc. Each of these 50 folders contains within them a varying amount of files and folders also. (So that is the set up).
I am wondering if it is within the capabilities of a script to zip all folders in the 'EVENTS' folder ('EVENT1', etc) which would of course include all of the folders contained inside the 50 folders. Kind of drilling through all folders contained within the 'EVENTS' folder without having to name them all as they will be changing over time.
If this could be done (I would need a cron to run it once a day) I would need the old zip to be deleted by the new daily zip.
At all times I would have the folder structure mentioned above in place with a zipped version of every folder next to the actual folder it was a zipped version of.

So if I was speaking to the script I would say " I want you to go into every folder you find inside the 'events' folder and zip it, but you must leave the original folders that you have zipped in place and drop the zipped version of next to it, I want you then to do this every day and remove the old zip with the new one, I don't have a list of all the folders in the 'EVENTS' folder, so go into it and work your way through".

How weird is this getting, I am not the best at explaining but I think this is a little more clear.

Many thanks again for your help
Reply With Quote