User Guide
Collection Maintenance Options 195
Collection Maintenance Options
mkvdk provides a variety of collection maintenance options, described in the
following table:
Examples: Maintaining collections
Repairing a collection
The following command automatically repairs a collection, or enables it after
manual repairs.
mkvdk -repair -collection path
Backing up a collection
The following command backs up a collection to the specified directory.
mkvdk -backup path_1 -collection path_2
Option Description
-backup dir This option backs up the collection into the specified directory. Note that the
backup will not include the tde subdirectory. The tde subdirectory is created by
and for Topic Document Entry if Topic Document Entry is used to create or
maintain the collection.
-repair This option repairs the collection, performed by an API call.
-purge This option waits the amount specified by the purgewait option and then
deletes all documents in the collection, but not the collection itself; it leaves
the collection directory structure intact.
To specify a different wait period, use the -purgewait option instead of -purge.
If you do not use purgewait, the default is 600 seconds.
-purgeback This option, used with the -purge option, performs a purge in the background.
-purgewait sec This option specifies to the -purge option how many seconds to wait. If you do
not specify sec, the default is 600..Collection Building Tool (
mkvdk)
-noservice This option prevents collection servicing (servicing includes indexing) by this
instance of
mkvdk, performed by an API call.
-persist This option services the collection repeatedly, at default intervals of 30
seconds. Use the -sleeptime option to set a different interval.
-sleeptime sec This option specifies the interval between service calls when
mkvdk is run
with the -persist option.
-optimize spec This option performs various optimizations on the collection, depending on the
value of spec. The specifier, spec, is a string consisting of keywords separated
by hyphens, such as maxmerge-squeeze-readonly. Valid keywords are:
described under “Optimization Keywords.”
-noexit Windows only. This option causes the I/O window to remain after the program
is finished. By default, the window closes and the program exits so that scripts
calling
mkvdk will not hang.