In EVERY Alfresco instance, follow these steps –
1. In order to find out the repositoryId, use the following command –
curl -uadmin “http://<ip_address>:<port>/alfresco/s/cmis” | grep cmis:repositoryId
1. In order to find out the repositoryId, use the following command –
curl -uadmin “http://<ip_address>:<port>/alfresco/s/cmis” | grep cmis:repositoryId
2. Open <ALFRESCO_HOME>/tomcat/shared/classes/alfresco-global.properties and add the following –
### Replication ###
replication.transfer.readonly=true
3. Open <ALFRESCO_HOME>/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml and add the following –
<config evaluator=”string-compare” condition=”Replication”>
<share-urls>
<share-url repositoryId=”<remote_repository_id>”>http://<remote_ip_address>:<port>/share/</share-url>
</share-urls>
</config>
In EVERY Alfresco instance, follow these steps –
User Creation
1. Login as admin
2. Click on More àUsers
3. Click on “New User”
4. Fill the form
Notes:
a. Every user must have the SAME “User Name” in each region.
b. Ensure that users are created MANUALLY BEFORE setting up replication.
Site Creation
1. Login as admin / non-admin user
2. Click on Sites àCreate Site
3. Fill the form
Notes:
a. Every site must have the SAME “Name” in each region and must be created by the same user.
b. Ensure that sites are created MANUALLY BEFORE setting up replication.
Set up Transfer Target
1. Login as admin
2. Go to Data Dictionary àTransfers àTransfer Target Group àDefault Group
3. Click on “New Folder”
4. Fill the form
a. Name = ReplicationUS2SG (say)
5. Click on “Edit Properties” for the folder ReplicationUS2SG and fill the form appropriately.
a. Endpoint Host = <address of the target server>
b. Endpoint Port = 8080 (non-ssl), 8443 (ssl)
c. Endpoint Path = /alfresco/service/api/transfer
d. Endpoint Protocol = http (non-ssl), https (ssl)
e. Username = <admin username of the target server>
f. Password = <admin password of the target server>
g. Check Enabled
In order to enable SSL-based replication on port 8443, add the following line in /opt/alfresco-4.0.1/tomcat/bin/catalina.sh –
JAVA_OPTS=”$JAVA_OPTS -Djavax.net.ssl.trustStore=<$ALFRESCO_HOME>/alf_data/keystore/ssl.truststore -Djavax.net.ssl.trustStorePass=kT9X6oe68t -Djavax.net.ssl.trustStoreType=JCEKS”
Note: As mentioned earlier, please ensure that users and sites are present in every region before setting up replication jobs.
Set up a Replication Job
1. Login as admin
2. Click on More àReplication Jobs
3. Click on “Create Job”
4. Fill the form appropriately
a. Select the appropriate Source Items
b. Select the appropriate Transfer Target
c. Check Enabled
d. If required, check Schedule Job and select an appropriate interval
Run a Replication Job
1. Select the job and click “Run Job”.