icestormdb utility is a command-line tool for importing and exporting IceStorm databases.
On this page:
The IceStorm Database utility supports the following command-line options:
Exporting an IceStorm Database
To export an IceStorm database, use the
--export option to specify the output file and the
--dbpath option to specify the path name of the database. For example, use the following command to export a database found in the
db directory to a file named
You can export an IceStorm database while IceStorm is actively using this database. Write operations to the IceStorm database will block while icestormdb is reading the database.
If you want to back-up the IceStorm database while IceStorm is running, we recommend using the mdb_copy tool.
Importing an IceStorm Database
To import an IceStorm database, use the
--import option to specify the input file and the -
-dbpath option to specify the path name of the database. For example, use the following command to import a database into the
dbNew directory from a file named
The target directory must be empty.
--mapsize option allows you to set the map size of the new LMDB database. See
service.LMDB.MapSize for additional information.
Besides importing files that it creates itself,
icestormdb can also import the files exported by the Ice 3.5 (
icestormdb35) and Ice 3.6 versions of this utility.