RE: Migrate to s3 store from Azure file store

Olaf Kock, modified 1 Year ago. New Member Posts: 4 Join Date: 3/19/24 Recent Posts

Hi Liferay geeks,

We are upgrading our portal from Liferay 7.0 to Liferay 7.4. With this upgrade we would like to migrate our document store to Azure to AWS s3. Can anyone guide how can we migrate documents from Azure file storage to S3 store.

Regards,

Hetal

thumbnail
Olaf Kock, modified 1 Year ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

You'll need to configure both Stores (naturally, first the one you're already running on...).

When both are configured, you can find the target in Control Panel / System / Server Administration / Data Migration.

Migrate the data, shut down the system, configure the target as the new active store and start up again.

Or just check the documentation.

Olaf Kock, modified 1 Year ago. New Member Posts: 4 Join Date: 3/19/24 Recent Posts

Hi Olaf,

Thanks for the quick reply. 

In 7.0 we are using advanced File system store, so db upgrade to 7.4 will be done with Advanced File system store. 

Once db is upgraded, we need to put s3 store configuration in osgi/config folder and db.store.impl will still be advancedfilestore.  Start data migration with empty s3 bucket.

It will migrate all the file in s3 store and now our document is converted to s3 store from Adavnced File store.

Now I can change the dl.store.impl property to s3 store and restart liferay and verify my documents.

Correct me if my understanding is wrong.

Regards,

Hetal Prajapati

thumbnail
Olaf Kock, modified 1 Year ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

That sounds right. If I remember correctly, the S3 store is there for quite a while, so you could also change the order and migrate the store before the upgrade, but that's up to your choice.