Use the Lucene's snapshot-maker and copy the given files.
The backup is successful if all these statements are true:
[x] During the backup the source index contains "write.lock".
[x] During the backup the index is used and there were addition, deletion, and modification that not repeated after the backup (repeated modification hides the consistency errors).
[x] During the backup the index was committed at least once.
[x] After the operation, the integrity checker finds no difference.
[x] The backup is valid:
[x] The copied index contains all index files except "write.lock" and "segments.gen".
[x] The copied segment file
[x] The copied index is valid: can be opened
[x] Can be opened ~with Luke~
[x] Can be restored (copy back and start repo: activities will be played)
[x] More backup operation cannot be executed simultaneously.
[ ] ~More backup operation can be called during the app's lifecycle.~
Use the Lucene's snapshot-maker and copy the given files.
The backup is successful if all these statements are true: