Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay database migration and File store in File system
We need to do a database migration of Liferay DXP to a different instance. How to migrate the files stored in the file system?
Please read this, it explains how to do a backup. It should help you to understand what's what.
https://learn.liferay.com/dxp/7.x/en/installation-and-upgrades/maintaining-a-liferay-dxp-installation/backing-up.html
I would advise you to learn how to do a backup in any case!
But in a default installation, if you just want to move everything to a new host, it could be simpler. You just need to copy the whole liferay folder to the new location.
If you move everything to the same path on the new host, you are done. If not, you need to do the following things:
1) Edit portal-setup-wizard.properties (or maybe portal-ext.properties) and fix the path in there
2) Delete the liferay/osgi/state folder (I would do that anyway, it's safe to do so)
That should basically be it. But I really advise you to read the backup help pages.
Thank you, Christoph. So basically, I have to move the /data folder to the new instance and migrate the database right. That will make all the document and media files available in the new instance right.