gzip cron job help
Posted on 2006-06-20
I am a web developer and want to run a series of cron jobs but I don't know where to find the information on how to do each particular one...
1. I want to gzip a series of directories /root/userfiles/images /root/userfiles/images2 etc... but i want to encode some sense of the root structure so in the final gzip file it contains /root/userfiles/images/image1.jpg instead of image1.jpg do you know what I mean?
2. Secondly I want that gzipped file to be ftp'd or emailed or somehow transferred to me and deleted off the server...
We could probably break down question 1 into 2 steps of how do i gzip a series of directories using cron and how do i preserve directory structure while only including files in certain sub-directories
Thanks very much