oo

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. They 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 a different 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.