Message Boards

Liferay database migration and File store in File system

Vishnu S Kumar, modified 3 Years ago.

Liferay database migration and File store in File system

Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts

We need to do a database migration of Liferay DXP to a different instance. How to migrate the files stored in the file system?

thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Liferay database migration and File store in File system

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

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.

Vishnu S Kumar, modified 3 Years ago.

RE: RE: Liferay database migration and File store in File system

Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts

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.