Steps to migrate liferay content from DataBase to AdvanceFileSystem and upload a content using "AdvancedFileSystemStore"
1) Stop tomcat server
2) Add below property in portal-ext.properties file
#
# FileSystemStore
#
dl.store.file.system.root.dir={Path of your drive}
3) Start server
4) Go to "Control Panel"
5) Go to "Server" -> "Server Administration" -> "Data Migration"
6) select dl.store.impl to "AdvanceFileSystemStore"
7) Click on "Execute"
8) Once migration task is completed, stop server
[Note: You should see below message in tomcat log]
12:11:31,141 INFO [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1421] Checking for available updates
12:11:31,143 INFO [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1465] Finished checking for available updates in 1 ms
12:12:25,676 DEBUG [http-bio-8080-exec-8][MaintenanceUtil:64] Executing com.liferay.portal.convert.ConvertDocumentLibrary
12:12:25,692 INFO [liferay/convert_process-1][ConvertProcess:41] Starting conversion for com.liferay.portal.convert.ConvertDocumentLibrary
12:12:25,703 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating 18 document library files
12:12:26,743 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating message boards attachments in 32 messages
12:12:26,804 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating wiki page attachments in 0 pages
12:12:26,813 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Please set dl.store.impl in your portal-ext.properties to use com.liferay.portlet.documentlibrary.store.AdvancedF
ileSystemStore
12:12:26,814 INFO [liferay/convert_process-1][ConvertProcess:47] Finished conversion for com.liferay.portal.convert.ConvertDocumentLibrary in 1122 ms
8) Make sure that content is migrated and available in the folder specified in point#2 i.e. {Path of your drive}
9) Make below changes in portal-ext.properties
##### For Advance File System Store
dl.store.impl=com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore
#comment out below line which was added earlier
#
# Set the name of a class that implements
# com.liferay.portlet.documentlibrary.store.Store. The
# document library server will use this to persist documents.
#
#dl.store.impl=com.liferay.portlet.documentlibrary.store.JCRStore
jcr.initialize.on.startup=false
10) Start Server
11) Upload a document / images using "Document and Media"
12) Go to the location specified in point#2
13) Make sure content is available in it
So far, we have migrated content from Database to "AdvanceFileSystemStore" and uploading content via "AdvanceFileSystemStore" is done.
Cheers!
Henal Saraiya
(Senior Consultant)
CIGNEX Datamatics
1) Stop tomcat server
2) Add below property in portal-ext.properties file
#
# FileSystemStore
#
dl.store.file.system.root.dir={Path of your drive}
3) Start server
4) Go to "Control Panel"
5) Go to "Server" -> "Server Administration" -> "Data Migration"
6) select dl.store.impl to "AdvanceFileSystemStore"
7) Click on "Execute"
8) Once migration task is completed, stop server
[Note: You should see below message in tomcat log]
12:11:31,141 INFO [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1421] Checking for available updates
12:11:31,143 INFO [com.liferay.portal.plugin.PluginPackageUtil][PluginPackageUtil:1465] Finished checking for available updates in 1 ms
12:12:25,676 DEBUG [http-bio-8080-exec-8][MaintenanceUtil:64] Executing com.liferay.portal.convert.ConvertDocumentLibrary
12:12:25,692 INFO [liferay/convert_process-1][ConvertProcess:41] Starting conversion for com.liferay.portal.convert.ConvertDocumentLibrary
12:12:25,703 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating 18 document library files
12:12:26,743 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating message boards attachments in 32 messages
12:12:26,804 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Migrating wiki page attachments in 0 pages
12:12:26,813 DEBUG [liferay/convert_process-1][MaintenanceUtil:64] Please set dl.store.impl in your portal-ext.properties to use com.liferay.portlet.documentlibrary.store.AdvancedF
ileSystemStore
12:12:26,814 INFO [liferay/convert_process-1][ConvertProcess:47] Finished conversion for com.liferay.portal.convert.ConvertDocumentLibrary in 1122 ms
8) Make sure that content is migrated and available in the folder specified in point#2 i.e. {Path of your drive}
9) Make below changes in portal-ext.properties
##### For Advance File System Store
dl.store.impl=com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore
#comment out below line which was added earlier
#
# Set the name of a class that implements
# com.liferay.portlet.documentlibrary.store.Store. The
# document library server will use this to persist documents.
#
#dl.store.impl=com.liferay.portlet.documentlibrary.store.JCRStore
jcr.initialize.on.startup=false
10) Start Server
11) Upload a document / images using "Document and Media"
12) Go to the location specified in point#2
13) Make sure content is available in it
So far, we have migrated content from Database to "AdvanceFileSystemStore" and uploading content via "AdvanceFileSystemStore" is done.
Cheers!
Henal Saraiya
(Senior Consultant)
CIGNEX Datamatics
No comments:
Post a Comment