Moving alf_data?

cancel
Showing results for 
Search instead for 
Did you mean: 
atTheBeach
Active Member II

Moving alf_data?

Jump to solution

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 Solution

Accepted Solutions
fedorow
Senior Member II

Re: Moving alf_data?

Jump to solution

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 solution in original post

2 Replies
fedorow
Senior Member II

Re: Moving alf_data?

Jump to solution

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.

atTheBeach
Active Member II

Re: Moving alf_data?

Jump to solution

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