Hi guys, I've a wierd problem when I try to fire snapcleaner manually : Already : is it correct : [EMAIL PROTECTED]:/data/solr/video# ./bin/snapcleaner -V -D-1
To remove every snapshot older than one day. It doesn't remove older than one day obviously and debugger show me : + [[ -z -1 ]] + fixUser -V -D -1 + [[ -z '' ]] ++ whoami + user=root ++ whoami + [[ root != root ]] ++ who -m ++ cut '-d ' -f1 ++ sed '-es/^.*!//' + oldwhoami=root + [[ root == '' ]] + [[ -z /data/solr/video/data ]] ++ echo /data/solr/video/data ++ cut -c1 + [[ / != \/ ]] + setStartTime + [[ Linux == \S\u\n\O\S ]] ++ date +%s + start=1224151299 + logMessage started by root ++ timeStamp ++ date '+%Y/%m/%d %H:%M:%S' + echo 2008/10/16 12:01:39 started by root + [[ -n '' ]] + logMessage command: ./bin/snapcleaner -V -D -1 ++ timeStamp ++ date '+%Y/%m/%d %H:%M:%S' + echo 2008/10/16 12:01:39 command: ./bin/snapcleaner -V -D -1 + [[ -n '' ]] + trap 'echo "caught INT/TERM, exiting now but partial cleanup may have already occured";logExit aborted 13' INT TERM + [[ -n -1 ]] + find /data/solr/video/data -maxdepth 0 -name foobar + '[' 0 = 0 ']' + maxdepth='-maxdepth 1' + logMessage cleaning up snapshots more than -1 days old ++ timeStamp ++ date '+%Y/%m/%d %H:%M:%S' + echo 2008/10/16 12:01:39 cleaning up snapshots more than -1 days old + [[ -n '' ]] ++ find /data/solr/video/data -maxdepth 1 -name 'snapshot.*' -mtime +-1 -print find: invalid argument `+-1' to `-mtime' + logExit ended 0 + [[ Linux == \S\u\n\O\S ]] ++ date +%s + end=1224151299 ++ expr 1224151299 - 1224151299 + diff=0 ++ timeStamp ++ date '+%Y/%m/%d %H:%M:%S' + echo '2008/10/16 12:01:39 ended (elapsed time: 0 sec)' + exit 0 Any idea why? thanks -- View this message in context: http://www.nabble.com/snapcleaner-%3E%3E-problem-solr-1.3-tp20010689p20010689.html Sent from the Solr - User mailing list archive at Nabble.com.