We have installed the Liferay portal software on a Windows server and accepted the installation default settings. Now we need to move our document library from its default location on the C: drive to a different disk partition. Can we move the existing data safely and configure Liferay to use the new repository, or do we have to start over?
It is possible to move a default Liferay document library to a new disk location and configure Liferay to use the new repository. First, stop the Tomcat service and make a backup of the repository home directory C:home. To move the repository from disk C: to disk F:, add this line – jcr.jackrabbit.repository.root=F:homeliferayjackrabbit – to the file WEB-INFclassesportal-ext.properties to override the default location defined by the master portal.properties file. Defining your changes in the portal-ext.properties file simplifies the upgrade procedure when Liferay updates are installed. Then copy the contents of the original repository from C:home to the new location in F:home. You can use the Java Web Start version of the program Luke to test that your repository content and index copied successfully by aiming the Luke browser at the F:homeliferay folder. Then you can restart Tomcat and test that your document library has been moved successfully and works properly.




