Datarouter-data-export exports a table to BlobStorage (Filesystem, GCS, or S3) and then imports it somewhere else.
<dependency>
<groupId>io.datarouter</groupId>
<artifactId>datarouter-data-export</artifactId>
<version>0.0.126</version>
</dependency>
You can install this module by adding its plugin to the WebappBuilder
.
You'll need to pass it the ClientId
s that it's allowed to export/import,
and a DatarouterDataExportDirectorySupplier
that specifies a Directory
where the data is stored.
addPlugin(new DatarouterDataExportPluginBuilder(
myClientIds,
MyDirectorySupplier.class)
.build());
Select a SortedStorage Databean node to export, optionally specifying a range of keys and a maximum number of rows. The databeans will be scanned from the database, encoded to an internal format, and saved to a file in the Directory specified in the plugin. When the export is complete, you'll receive an email with a link to import the data to localhost.
This library is licensed under the Apache License, Version 2.0 - see LICENSE for details.