On 03/31/17 14:21, Lorand Szentannai wrote: > Hi, > > I would like to apply two different cleanup rules for the same fileclass in > Robinhood v3. > For example: > - if usage is below 50%, delete files older than 1 month > - if usage is above 80%, delete files older than 2 weeks > > Is there a way to achieve this? I understand your need is to apply different rules depending on the trigger that start the policy run.
The solution I can propose you sounds like a workaround but it should work: define a second cleanup policy (e.g. cleanup_2w), like in includes/cleanup.inc for example. Your 50% trigger will be a cleanup_trigger and applies cleanup_rules to clean after 1 month. Your 80% trigger will be a cleanup_2w_trigger and applies cleanup_2w_rules to clean after 2 weeks. HTH Thomas ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ robinhood-support mailing list robinhood-support@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/robinhood-support