Koozali.org: home of the SME Server

Recycle bin cleaning script

Offline engdev

  • *
  • 71
  • +0/-0
Recycle bin cleaning script
« on: May 15, 2013, 10:33:53 AM »
I followed the 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.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Recycle bin cleaning script
« Reply #1 on: May 15, 2013, 08:52:08 PM »
I followed the 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 }}
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline engdev

  • *
  • 71
  • +0/-0
Re: Recycle bin cleaning script
« Reply #2 on: May 16, 2013, 10:55:02 AM »
Ok, I have taken courage from your suggestion and requested access to the wiki.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Recycle bin cleaning script
« Reply #3 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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline engdev

  • *
  • 71
  • +0/-0
Re: Recycle bin cleaning script
« Reply #4 on: May 16, 2013, 03:31:47 PM »

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Recycle bin cleaning script
« Reply #5 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!