Skip to content

Files

Latest commit

 

History

History
36 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.16 KB

datarouter-data-export

Datarouter-data-export exports a table to BlobStorage (Filesystem, GCS, or S3) and then imports it somewhere else.

Installation with Maven

<dependency>
	<groupId>io.datarouter</groupId>
	<artifactId>datarouter-data-export</artifactId>
	<version>0.0.126</version>
</dependency>

Installation

You can install this module by adding its plugin to the WebappBuilder. You'll need to pass it the ClientIds 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());

Usage

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.

License

This library is licensed under the Apache License, Version 2.0 - see LICENSE for details.