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 Export/Import Center). Then add it to a batch client extension and deploy it to bring the data into another Liferay instance.

To export data to use with batch client extensions, you can use the Export/Import Center via the Applications Menu (Applications menu icon). To enable the Export/Import center, add this portal property before starting Liferay:

feature.flag.COMMERCE-8087=true
Warning

The batch framework’s export/import center is a feature under development. Never enable a dev feature flag in production.

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