Data Transfer
Use these workflows when a clean local setup is not enough to reproduce the issue.
LCP-aware:
ldev db sync,ldev db downloadandldev db files-downloadpull from Liferay Cloud (LCP) specifically. They use thelcpCLI under the hood. For self-hosted production, use a backup you already have vialdev db import --file <backup>and move Document Library files manually withldev db files-mount.
Database (LCP)
ldev db sync --environment production --project my-lcp-project --forceThis replaces the current local database with a selected LCP backup. Requires the LCP CLI installed and authenticated.
Database (any source)
ldev db import --file /path/to/backup.sql.gz --forceWorks with any local .sql, .gz, or .dump file — LCP-originated or not.
Document Library (LCP)
ldev db files-download \
--environment production \
--project my-lcp-project \
--doclib-dest docker/doclib/production
ldev db files-mount --path docker/doclib/productionDo this when the incident depends on documents, media, or file-backed content stored in LCP.
Document Library (manual)
If your file store is outside LCP, move it manually and mount it yourself:
ldev db files-mount --path /path/to/manual/doclibVerify after transfer
ldev start
ldev doctor
ldev portal inventory page --url /home --jsonThe goal is a production-like local environment that you can inspect and fix safely.