cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change where alf_data directory is created

shoover
Champ in-the-making
Champ in-the-making
Greetings.
Not sure if this is a config or installation question.

I currently have alfresco up and running.  I am preparing to do a new install on a different machine and would like to have the alf_data to be created on a different disk from the appserver.(hope I said that right)
Basically I'm looking to seperate the data store under alf_data from the other alfresco related stuff.

Currently I have this in the alfresco.sh file:
ALF_HOME=/disk4/xxxx 
and
APPSERVER="${ALF_HOME}/tomcat"

When alfresco starts up for the first time the alf_data directory gets created under ALF_HOME.

I would like to have the alf_data located on a different disk. Is that possible?
For instance if I changed the alfresco.sh file so:
ALF_HOME=/disk5/xxxxx
and
APPSERVER=/disk4/xxxx/tomcat

That would cause the alf_data directory to be placed in the ALF_HOME on disk5.

Is that the suggested or prefered way to accomplish this or is there somplace else I should be doing this?

Thanks,
steve.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
You want to set the dir.root property in your alfresco.global.properties.

Since you already have some data in your current location after you change the location of your content store you will either need to copy the existing content to the new location or drop and re-create the empty database for alfresco to use.

shoover
Champ in-the-making
Champ in-the-making
Great.  I sort of thought that would be what I would need to do but I justed wanted to be sure.
Thanks.
S.