cancel
Showing results for 
Search instead for 
Did you mean: 

Moving alf_data?

atTheBeach
Confirmed Champ
Confirmed Champ

I'd like to move alf_data on to a separate encrypted partition. I can't find any configuration that tells ACS where the data directory is, so I presume that my only option is to create a symlink from the installation alf_data location to my new location (in my case, /opt/tomcat/alf_data -> /data/var/alfresco/alf_data).

Is this Ok, or does anything else have to be changed?

1 ACCEPTED ANSWER

fedorow
Elite Collaborator
Elite Collaborator

For local deployment (zip installation) the property dir.root point to local directory of your contentstore. It could be changed in alfresco-global.properties file to any local path. In your case as I understand destination is:

dir.root=/data/var/alfresco/alf_data

If you have docker deployment you must create docker persistant volume. Inside container the default path to contentstore is /usr/local/tomcat/alf_data. It will be in dir.root property. Leave it as is. Your docker volume must map this container path to local directory or docker named volume. In your case in docker compose yaml file the alfresco service must have:

services:
alfresco:
...
volumes: - /data/var/alfresco/alf_data:/usr/local/tomcat/alf_data
...

p.s. pay attantion, the docker volumes do not understand the symbolic links. The docker volume must point to real path of mapped drive or directory.

Peace,

Serge F.

View answer in original post

2 REPLIES 2

fedorow
Elite Collaborator
Elite Collaborator

For local deployment (zip installation) the property dir.root point to local directory of your contentstore. It could be changed in alfresco-global.properties file to any local path. In your case as I understand destination is:

dir.root=/data/var/alfresco/alf_data

If you have docker deployment you must create docker persistant volume. Inside container the default path to contentstore is /usr/local/tomcat/alf_data. It will be in dir.root property. Leave it as is. Your docker volume must map this container path to local directory or docker named volume. In your case in docker compose yaml file the alfresco service must have:

services:
alfresco:
...
volumes: - /data/var/alfresco/alf_data:/usr/local/tomcat/alf_data
...

p.s. pay attantion, the docker volumes do not understand the symbolic links. The docker volume must point to real path of mapped drive or directory.

Peace,

Serge F.

Thanks Serge. It was a pretty dumb question; I just found dir.root myself by grepping everything. No Docker.