java com.sleepycat.je.util.DbDump -h <dir> # environment home directory [-f <fileName>] # output file, for non -rR dumps [-l] # list databases in the environment [-p] # output printable characters [-r] # salvage mode [-R] # aggressive salvage mode [-d] <directory> # directory for *.dump files (salvage mode) [-s <databaseName>] # database to dump [-v] # verbose in salvage mode [-V] # print JE version numberSee {@link DbDump#main} for a full description of thecommand line arguments. To dump a database to a stream from code:
DbDump dump = new DbDump(env, databaseName, outputStream, boolean); dump.dump();
Because a DATA=END
marker is used to terminate the dump of each database, multiple databases can be dumped and loaded using a single stream. The {@link DbDump#dump} method leaves the stream positioned afterthe last line written and the {@link DbLoad#load} method leaves the streampositioned after the last line read.
|
|