05-08-2024 05:13 AM
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?
05-09-2024 03:15 AM
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.
05-09-2024 03:15 AM
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.
05-09-2024 03:21 AM
Thanks Serge. It was a pretty dumb question; I just found dir.root myself by grepping everything. No Docker.
Explore our Alfresco products with the links below. Use labels to filter content by product module.