Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: engdev on May 15, 2013, 10:33:53 AM

Title: Recycle bin cleaning script
Post by: engdev on May 15, 2013, 10:33:53 AM
I followed the http://wiki.contribs.org/RecycleBin (http://wiki.contribs.org/RecycleBin) howto and installed the automatic cleaning script as per the instructions. However, as written, the script doesn't remove any files older than 30 days.  It only works on our servers if you set the -ctime parameter to 1 or 2, I checked this on SME 7.6 and 8.0. For some reason the last changed file attribute isn't appropriate. So I changed the '-ctime' to '-mtime' and the script now functions as expected. I don't know if this is a quirk of our servers but thought I would post in case it helps anyone else as it's a great feature.
Title: Re: Recycle bin cleaning script
Post by: stephdl on May 15, 2013, 08:52:08 PM
I followed the http://wiki.contribs.org/RecycleBin (http://wiki.contribs.org/RecycleBin) howto and installed the automatic cleaning script as per the instructions. However, as written, the script doesn't remove any files older than 30 days.  It only works on our servers if you set the -ctime parameter to 1 or 2, I checked this on SME 7.6 and 8.0. For some reason the last changed file attribute isn't appropriate. So I changed the '-ctime' to '-mtime' and the script now functions as expected. I don't know if this is a quirk of our servers but thought I would post in case it helps anyone else as it's a great feature.
can you write this in the wiki page adding a tipbox with your advice to inform other people. The wiki is a better place than the forum... Courage!

{{Tip box | your advice you want to give }}
Title: Re: Recycle bin cleaning script
Post by: engdev on May 16, 2013, 10:55:02 AM
Ok, I have taken courage from your suggestion and requested access to the wiki.
Title: Re: Recycle bin cleaning script
Post by: janet on May 16, 2013, 02:49:17 PM
engdev

With that courage please also raise a bug report on bugzilla so the issue can be investigated & fixed if there truly is a bug. Thank you
Title: Re: Recycle bin cleaning script
Post by: engdev on May 16, 2013, 03:31:47 PM
ok:  http://bugs.contribs.org/show_bug.cgi?id=7596
Title: Re: Recycle bin cleaning script
Post by: stephdl on May 16, 2013, 04:49:45 PM
Ok, I have taken courage from your suggestion and requested access to the wiki.
a big thank and feel free to find any other things to modify or enhance.

Merci infiniment