Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: wjhobbs on June 26, 2006, 04:23:23 AM
-
I am trying to implement the "recycle bin" feature on some i-bays. What I would also like to do is have the Recycle Bin maintain itself over time (i.e., get rid of older files after a period of time).
I have seen this in the documentation http://no.longer.valid/phpwiki/index.php/How%20to%20clean%20up%20files%20older%20than%20X%20days%20from%20the%20%22Recycle%20Bin%22%20directories
That would indicate to me that Samba does not have an automatic facility built-in.
Looking at the how-to linked above, it seems to me that the timing of the first two cron jobs is reversed. I believe the physical order of specification is correct -- but I think the first entry should have '39 1 * * *' and the second one should be '39 2 * * *'.
Could someone with more knowledge than I confirm this one way or the other?
Thanks.
John
-
but I think the first entry should have '39 1 * * *' and the second one should be '39 2 * * *'.
Doesn't matter if 1 or 2 bascially it's just saying that @ 2:39am it's going to run the cronjob.
-
Thanks, Byte.
My concern is not with the order of appearance but rather with what gets done in each case.
The one that runs at 2:39 looks for files at a certain directory level
find /home/e-smith/files/*/*/*/Recycle\ Bin -type f -atime +15 -exec rm \{\} \
but the one that runs earlier at 1:39 looks at a higher level
find /home/e-smith/files/*/*/Recycle\ Bin -type f -atime +15 -exec rm \{\} \
I would have thought that the lower level files should be cleared before the higher level ones.
But maybe it doesn't matter since the directories involved aren't being removed until 3:39 and 4:39.
I just wanted someone to confirm that it doesn't matter. (or maybe I just don't understand.:-? )
Thanks for taking a look.
John