still nothing changed :

[EMAIL PROTECTED]:/data/solr/video# ./bin/snapcleaner -V -D 1
+ [[ -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=1224156482
+ logMessage started by root
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/10/16 13:28:02 started by root
+ [[ -n '' ]]
+ logMessage command: ./bin/snapcleaner -V -D 1
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/10/16 13:28:02 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 13:28:02 cleaning up snapshots more than 1 days old
+ [[ -n '' ]]
++ find /data/solr/video/data -maxdepth 1 -name 'snapshot.*' -mtime +1
-print
+ logExit ended 0
+ [[ Linux == \S\u\n\O\S ]]
++ date +%s
+ end=1224156482
++ expr 1224156482 - 1224156482
+ diff=0
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo '2008/10/16 13:28:02 ended (elapsed time: 0 sec)'
+ exit 0



Chris Haggstrom wrote:
> 
> 
> On Oct 16, 2008, at 3:10 AM, sunnyfr wrote:
>>
>> 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.
> 
> You need to change "-D -1" to "-D 1".  Otherwise, you're trying to  
> remove snapshots older than -1 days, which is an invalid argument to  
> pass to 'find -mtime' as is shown in these lines of your debug output.
> 
>> It doesn't remove older than one day obviously and debugger show me :
>>
>> + logMessage cleaning up snapshots more than -1 days old
>> ++ find /data/solr/video/data -maxdepth 1 -name 'snapshot.*' -mtime  
>> +-1
>> find: invalid argument `+-1' to `-mtime'
> 
> 
> -Chris
> 
> 

-- 
View this message in context: 
http://www.nabble.com/snapcleaner-%3E%3E-problem-solr-1.3-tp20010689p20011746.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to