Hello, Trying to migrate to robinhood v3.1 and running into a problem that hopefully someone can help with. We are using the tmpfs feature and just trying to remove files not accessed for over 14d and do not remove empty directories or symbolic links. This works on robinhood 2.5 for us. I know it must be somethig easy but not seeing it =]
Here are the bits from the conf file I am working with %include "includes/tmpfs.inc" ################################################################ # File classes. Define the file criteria to be acted upon # ################################################################ fileclass _symlinks_ { definition { type == symlink } } fileclass _emptydirs_ { definition { type == directory and dircount == 0 } } ############################################################### # Policies. These are actions that we apply to File classes # ############################################################### # ----------Policy for /lustre4/scratch # 1. Purge files not accessed in 14 days # 2. Ignore Symbolic links # 3. Ignore Empty directories cleanup_rules { ignore_fileclass = _projects_; ignore_fileclass = _shifter_; ignore_fileclass = _totem_; ignore_fileclass = _emptydirs_; ignore fileclass = _symlinks_; rule clean_f { target_fileclass = _scratch_; condition { last_access > 14d } } } [root@robinhood robinhood.d]# robinhood -f matt.conf --scan Error reading configuration file 'matt.conf': syntax error, unexpected AFFECT, expecting BEGIN_SUB_BLOCK at '=' line 84 in 'matt.conf' [root@robinhood robinhood.d]# sed -n 80,90p matt.conf ignore_fileclass = _projects_; ignore_fileclass = _shifter_; ignore_fileclass = _totem_; ignore_fileclass = _emptydirs_; ignore fileclass = _symlinks_; rule clean_f { target_fileclass = _scratch_; condition { last_access > 14d } } } If I comment out "ignore file_class = _symlinks_" line then the configuration loads. Thanks! Matt ------------------------------------------------------------------------------ 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