Legacy Knowledge Base
Published Jul. 2, 2025

How to migrate to DBStore

Written By

Sorin Pop

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • How can I migrate my FileSystemStore or AdvancedFileSystemStore to DBStore?

Environment

  • DXP 7.0
  • DXP 7.1

Resolution

  1. Stop the DXP server and make sure to do a backup of your database and document library root folder, just in case something goes wrong and you need to roll back.
  2. Start up the DXP server, and then go to Control Panel → Server Administration → Data Migration. (as described in the article mentioned above, Method 2)
  3. Select DBStore as the target store type. You will also see an option whether to keep the files in from the previous store or not. That's up to you, but if you made the backup from step 1, it should be safe to choose to delete.
  4. Click Execute. 
  5. Watch the logs to know when the process is complete, and make special note of any exceptions. The platform will be unavailable until it is restarted with the changes applied to portal.properties.
    Basically here the migration itself will happen, by populating the dlcontent table in the database.
  6. Verify the data was written to the appropriate document library store location: in this case, verify that the dlcontent table has been populated.
  7. When the migration is done, you will get a message to restart the DXP server and set the dl.store.impl property to the new store type, inportal-ext.
  8. So, stop the server, set 
    dl.store.impl=com.liferay.portal.store.db.DBStore

    in your server's portal-ext file, then start the server up again. Now, the server should know that it is in DBStore mode, and it will look for the document files not in the file system, but in the dlcontent database table.

Additional Information

  • Based on the following KB article, specifically written for migrating to DBStore

https://help.liferay.com/hc/en-us/articles/360017649452-Migrating-File-System-Stores-

 

Did this article resolve your issue ?

Legacy Knowledge Base