In Windows you have no chance to do that without closing all IndexWriters and IndexReaders that modify indexes.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: luocan19826...@sohu.com [mailto:luocan19826...@sohu.com] > Sent: Thursday, February 25, 2010 9:15 AM > To: java-user > Subject: problem about backup index file > > I want backup my index file,but I get the follow error. > java.io.IOException: another program lock the file! at > java.io.FileInputStream.readBytes(Native Method) at > java.io.FileInputStream.read(Unknown Source) at > com.common.Utils.copyDirectory(Utils.java:149) at > com.common.Utils.copyDirectory(Utils.java:138) at > com.common.Utils.copyDirectory(Utils.java:138) at > com.index.IndexManager.backDataPolicy(IndexManager.java:398) at > com.index.IndexManager.indexLoop(IndexManager.java:222) at > com.Main$1.run(Main.java:48) at java.lang.Thread.run(Unknown > Source) > > How can I backup lucene file in IR thread. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org