Hi Doug, > I have been using Robinhood 3.1-1 to cleanup old files from our scratch file > systems but when adding a rmdir policy to remove empty directories it is not > working.
The way I've got it set up here is to have %include "includes/rmdir.inc" # note that in new versions it doesn't only clean empty directories rmdir_rules { ignore { owner == root or depth < 2 } rule default { condition { dircount == 0 and last_mod > 4d } } } rmdir_parameters { lru_sort_attr = none; } rmdir_trigger { trigger_on = periodic; check_interval = 30m; } It's not ideal - I should probably move the dircount into the ignore as I see directories in the logfile being evaluated that aren't empty 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | ======= rmdir policy: action stats ====== 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | idle threads = 3 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | queued entries = 0 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | action status: 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | action successful = 12581399 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | moved or deleted since last update = 4660208 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | whitelisted/ignored = 280353593 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | out of scope = 135138 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | action error = 10642 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | 12581399 actions successful/297740980, 50.30 GB (105490240 blocks) 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | last action queued 0 s ago 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | last action started 0 s ago 2018/03/29 05:16:39 robinhood@magnus-1[28263/1] STATS | last action completed 0 s ago but it seems to be working: 018/03/29 05:18:30 robinhood@magnus-1[28263/40] rmdir | Executing policy action on: 0x2186e659d:0x1592d:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0288/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/39] rmdir | Executing policy action on: 0x2186e659d:0x15ae0:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0289/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/40] rmdir | Executing policy action on: 0x2186e659d:0x15c92:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.029/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/40] rmdir | Executing policy action on: 0x2186e659d:0x15e50:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0291/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/39] rmdir | Executing policy action on: 0x2186e659d:0x15fec:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0292/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/37] rmdir | Executing policy action on: 0x2186e659d:0x161a4:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0293/uniform) 2018/03/29 05:18:30 robinhood@magnus-1[28263/39] rmdir | Executing policy action on: 0x2186e659d:0x16361:0x0 (/scratch/pawsey0183/vgolkarfard/runMagnus-Of3/NewSchemes/30PercentSaturation/2ms30Percent/fibrous2ms30Percent/processor23/0.0294/uniform) Andrew ------------------------------------------------------------------------------ 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