Importing/Exporting Data

Liferay Self-Hosted Liferay SaaS Liferay PaaS

Liferay 7.4

If you want to import or export data from Liferay, you use batch client extensions. Use and reuse your data between different Liferay instances directly from your workspace, as part of your development process.

Batch Client Extensions

Batch client extensions work with Liferay’s batch engine framework to provide data entities to your Liferay instance. Export one instance’s data (e.g., via curl or the data migration center). Then add it to a batch client extension and deploy it to bring the data into another Liferay instance.

When exporting objects or API application data to use with batch client extensions, you can use the data migration center via the Applications Menu (Applications menu icon).

Warning

The batch framework’s data migration center is a beta feature.

To use the data migration center, enable its feature flag in Instance Settings → Feature Flags. It’s in the Beta Features section as Data Migration Center (COMMERCE-8087). Alternatively, add this portal property before starting Liferay:

feature.flag.COMMERCE-8087=true

Specify the batch client extension in your client-extension.yaml file:

type: batch

You can export any type of data supported by the batch engine framework from your Liferay instance, including object definitions and workflow definitions.

Important

When exporting, use the jsont file format. jsont is required for *.batch-engine-dat.json files when using in conjunction with batch client extensions.

Once the *.batch-engine-data.json file is added to a batch client extension, deploy the built archive to Liferay Cloud or self-hosted Liferay instances.

Site Initializer Client Extensions

A Site Initializer is a type of batch client extension you can deploy to create a pre-built site quickly. Deploying the client extension creates the new site along with any configurations or content provided with it.

Specify the Site Initializer client extension in your client-extension.yaml file:

type: siteInitializer

See Using a Site Initializer Client Extension to get started.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy