Home

Awesome

GridDB Export/Import tools

Overview

The GridDB export/import tools, to recover a database from local damages or the database migration process, save/recovery functions are provided in the database and container unit.

Operating environment

Building and program execution are checked in the environment below.

OS: CentOS 7.9 (x64)
Java: OpenJDK 1.8.0
GridDB Server: V5.6 CE (Community Edition)
GridDB Java Client: 5.6 CE (Community Edition)
GridDB JDBC: V5.6 CE (Community Edition)

Quick start - Build and Run

Preparations

Build

Run the make command like the following:

$ cd expimp-ce
$ ./gradlew shadowJar

and the following file is created under expimp-ce/build/libs/ folder.

griddb-expimp-ce-all.jar

Run GridDB Export/Import

$ cd bin
$ ./gs_import -u admin/[password] -d ../impSample/collection --all
$ ./gs_import -u admin/[password] -d ../impSample/timeseries --all
$ ./gs_import -u admin/[password] -d ../impSample/arrayData --all
$ cd bin
$ ./gs_export -u admin/[password] -d outCollection -c c001
$ ./gs_export -u admin/[password] -d outTimeseries -c t001
$ ./gs_export -u admin/[password] -d outArrayData -c colb

Document

Refer to the file below for more detailed information.

Community

License

The GridDB Export/Import source license is Apache License, version 2.0.