Foren

Portal instance data migration

thumbnail
David Bougearel, geändert vor 6 Jahren.

Portal instance data migration

Junior Member Beiträge: 54 Beitrittsdatum: 30.06.16 Neueste Beiträge
Hi,

We need to move data of an entire portal instance to another server.
We have several sites related to this portal instance, web contents, documents, users, organisations, custom fields and specific business data stored in custom tables.

What is the best way to do this ?

Thanks for your support.

Best regards,
David.
thumbnail
David H Nebinger, geändert vor 6 Jahren.

RE: Portal instance data migration

Liferay Legend Beiträge: 14917 Beitrittsdatum: 02.09.06 Neueste Beiträge
The database should not be an issue, it is just a database.

You just have to copy over the data folder and portal-ext.properties (and perhaps other) files.

Do not change paths, however, or things get kind of hairy.










Come meet me at the 2017 LSNA!
thumbnail
Alberto Chaparro, geändert vor 6 Jahren.

RE: Portal instance data migration

Liferay Master Beiträge: 549 Beitrittsdatum: 25.04.11 Neueste Beiträge
Hi Davids,

Maybe the David Bougearel wants to move the data from one Liferay portal to another different Liferay portal instance, is that the case?

Regards.
thumbnail
David Bougearel, geändert vor 6 Jahren.

RE: Portal instance data migration

Junior Member Beiträge: 54 Beitrittsdatum: 30.06.16 Neueste Beiträge
Hi both of you,

Yes maybe my first message was not clear enough.
We have already a liferay portal with several portal instance inside on a server.
We have another liferay portal with some portal instance on another server.

We need to migrate data of one portal instance of the first server to the second server.
Imagine the first server has portal instances A, B, C and the second server has portal instance D.
We want to create on the second server a portal instance B. So after creating the new portal instance B inside the second server, it comes the issue with data migration.

What is the best way to do it from your opinion ?

Thanks a lot.

Best regards,
David.
thumbnail
Alberto Chaparro, geändert vor 6 Jahren.

RE: Portal instance data migration

Liferay Master Beiträge: 549 Beitrittsdatum: 25.04.11 Neueste Beiträge
Hi David,

Are you using LIferay 7 or DXP? If this version we created a tool to move instances between different Liferay portals.

For previous versions, first of all you need to decide which objects are indispensable to move.

For all related to sites (web contents, documents, pages, etc.) you can use LAR (please be sure that both instances use the same version of Liferay, if not you should upgrade first)

For other cross cutting elements like organizations, users or roles you could create your custom development which creates these objects in the other installation using the API. You could also check Liferay Marketplace or use LDAP for exporting and importing users.

Regards.
thumbnail
David Bougearel, geändert vor 6 Jahren.

RE: Portal instance data migration

Junior Member Beiträge: 54 Beitrittsdatum: 30.06.16 Neueste Beiträge
For this case unfortunatly the project use liferay 6.2.
After my research, i had been obliged to conclude on the same output : use lar files to export data and custom export/import for everything else.

Thanks for your answers Alberto and David.

Have a nice day.

Best regards,
David.
Alla Sapozhnikova, geändert vor 6 Jahren.

RE: Portal instance data migration

Junior Member Beiträge: 81 Beitrittsdatum: 02.03.12 Neueste Beiträge
Hi Alberto,

But LAR is per site, not per instance, correct? So, if i have an instance with hundreds of sites I have to deal with hundreds of LARS, don't I?

Thank you.
Alla
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: Portal instance data migration

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
Yes.
But what problem do you want to solve with this? Why do you want to move the sites?
Alla Sapozhnikova, geändert vor 6 Jahren.

RE: Portal instance data migration

Junior Member Beiträge: 81 Beitrittsdatum: 02.03.12 Neueste Beiträge
Custom fields and roles are within an instance. This is a problem for some of our sites when they are in the same instance.
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: Portal instance data migration

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
Well, in that case you are stuck. You need to export and import one by one.
I'd do a quick test if that strategy works. You might even get into trouble with the custom fields. I think, it will complain when you import the site on the other instance about the missing custom fielda.
Fredrik Nordin, geändert vor 4 Jahren.

RE: Portal instance data migration

New Member Beitrag: 1 Beitrittsdatum: 22.11.19 Neueste Beiträge
@Albero Chaparro: The tool mention here, were can it be downloaded?
Best regards
Fredrik
Alla Sapozhnikova, geändert vor 4 Jahren.

RE: Portal instance data migration

Junior Member Beiträge: 81 Beitrittsdatum: 02.03.12 Neueste Beiträge
I am in the process of migrating to 7.2. The tool you mentioned would be really helpful where can it be downloaded?