|
Proof of my inadequecy follows...
I'm running Samba, 2.2.4, and I'm using the recycle
bin for a few of the shares.
When files are moved into the recycle bin, they are
date stamped with the time they are moved (deleted).
What I want to do is set up a cron job to run every
nite so that files older than a week are deleted from the recycle
bin.
But I'm not good enough with scripting to figure it
out.
What happens is that at the root of the share, a
directory named .recycle is created.
Requests to delete a file are processed as a move,
with the deleted file moved into .recycle, including the full path to the
file.
So I need to list the directory,
recursively.
Pull out the full path name of any files older than
7 days.
then feed the output into a remove
request.
There HAS to be an easy way to accomplish
this. There just HAS to be. But I don't know it.
Any thoughts or advice?
Thanks in advance.
Kev.
|
