Message Boards
Liferay database migration and File store in File system
Liferay database migration and File store in File system
Regular Member Posts: 131 Join Date: 7/28/17 Recent PostsWe need to do a database migration of Liferay DXP to a different instance. How to migrate the files stored in the file system?
RE: Liferay database migration and File store in File system
Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent PostsPlease 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.
RE: RE: Liferay database migration and File store in File system
Regular Member Posts: 131 Join Date: 7/28/17 Recent PostsThank 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.