files: any:: # cleanup old logs "$(sys.workdir)/outputs" comment => "Clean up outputs older than 90 days", delete => tidy, file_select => days_old("90");--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/groups/opt_out.
# tidy old files based on age and sizebody file_select file_days_size(days,from,to) { search_size => irange("$(from)","$(to)"); mtime => irange(0,ago(0,0,"$(days)",0,0,0)); file_result => "((mtime)&(size))";}
files: any:: # cleanup old logs "$(sys.workdir)/outputs" comment => "Clean outputs older than 60 days and < 200 bytes", delete => tidy, file_select => file_days_size("60", "0", "200");