You can automatically replicate folders and content between repositories using replication jobs. These jobs are controlled by the replication service, which finds content that needs to be replicated and then calls the transfer service to carry out the replication. Replication suits an environment where you are running multiple, separate instances of Alfresco Community Edition and then replicating a subset of the content between these servers.
Content replication is designed to assist geographically distributed deployments where performance may be affected by network latency or bandwidth limitations.
For network administrators replication provides:
By default, replicated content is read-only on the target repository. This ensures the integrity of the content is not compromised by uncontrolled updates. An option is provided in the Alfresco Share user interface for users to navigate to the content's source repository to make any updates.
The replication service controls content replication between different repositories. The replication service is responsible for persisting replication jobs that specify what is to be replicated, to where, and when. In addition, it monitors the status of currently executing replication jobs and enables replications to be canceled.
The replication service finds the nodes that need to be transferred, and then it delegates the transfer of content to the transfer service.
Replication jobs are managed in the Alfresco Share Admin Tools.
Set the replication.enabled property to true:
replication.enabled=true
The transfer service stores files that control and monitor the operation of the transfer service in the Transfers space in the Data Dictionary.
You can add transfer targets by creating new transfer folders.
A rule defined on the Default Group folder specializes the type of any folder created in it.
The type is set automatically by the folder rule to trx:transferTarget. This allows you add the required properties to define the replication target through the user interface.
replication.enabled=trueand restart the source repository.
replication.enabled=true transferservice.receiver.enabled=trueand restart the target repository.
Name is a new folder name; for example, Replication Job. Payload is the source content directory, and Transfer Target is the folder name that you set up in step 1 [7] (Replica).
Log in to Alfresco Share on the target repository, select a transferred file and click Open in Source Repository to check that content has replicated.
A replication job specifies the content to be replicated; the day and time the job is to be performed; and the target location for the replicated content.
The job is controlled by the Replication Service, and it calls the Transfer Service, which allows folders and content to be automatically copied between repositories. A replication job can be run according to a schedule or on-demand.
By default, any replicated content is read-only in the target repository. This ensures the integrity of the content is not affected by uncontrolled updates.
The Replication Jobs page displays a summary of recently run jobs and a list of existing replication jobs. In this list, use the menu provided to sort the jobs by Status, Name, and Last Run Date.
The job appears highlighted in the list and its details appear on the right side of the page.
The Create New Replication Job page appears. Fields marked with an asterisk (*) are required.
Navigate the repository and click Add to the right of each space that you want to include in the payload. This content will be replicated (copied) when the job is run. Click OK.
Navigate the Transfer Target Groups and click Select to the right of the target. Click OK.
See Creating a new transfer target for content replication [5] for more information.
Select the Schedule job check box, then enter the date and time the job is to run. Specify the repeat period for this job.
The job created appears highlighted in the Jobs list. The job details appear on the right side of the page.
For each job in this list, you can perform any of the following actions to manage and maintain the jobs:
The job appears highlighted in the list and its details appear on the right side of the page.
The Status section on the right side of the page indicates that the job is running. The date and time the job started is displayed.
An icon () to the left of the job name
indicates a job is currently running.
The Status section on the right side of the page indicates the start time of the selected job.
The job is stopped and a report is created.
The job appears highlighted in the list and its details appear on the right side of the page.
The Edit Replication Job page appears.
Add and remove source items as necessary. Click Remove to the right of a single item to remove it. Click Remove All beneath the list to remove all items.
Deselect the Enabled check box to prevent the job from being run.
The main page displays the updated job details.
The job appears highlighted in the list and its details appear on the right side of the page.
A message prompts you to confirm the deletion of the selected job.
The selected job is deleted from the jobs list.
The remote report is the transfer report from the receiving system. This report indicates whether files were created, updated, modified, or deleted as part of the transfer.
The job appears highlighted in the list and its details appear on the right side of the page.
The selected report displays on the details page of the Repository Document Library.
Links:
[1] https://docs.alfresco.com/../tasks/replication-share.html
[2] https://docs.alfresco.com/../tasks/admintools-replication-transfertarget.html
[3] https://docs.alfresco.com/../concepts/admintools-replication-intro.html
[4] https://docs.alfresco.com/../concepts/ch-administering.html
[5] https://docs.alfresco.com/admintools-replication-transfertarget.html
[6] https://docs.alfresco.com/../concepts/admintools-replication-config.html
[7] https://docs.alfresco.com/admintools-replication-transfertarget.html%23admintools-replication-transfertarget__replica
[8] https://docs.alfresco.com/../tasks/admintools-replication-view.html
[9] https://docs.alfresco.com/../tasks/admintools-replication-create.html
[10] https://docs.alfresco.com/../concepts/admintools-replication-manage.html
[11] https://docs.alfresco.com/../tasks/admintools-replication-reports.html
[12] https://docs.alfresco.com/../tasks/admintools-replication-run.html
[13] https://docs.alfresco.com/../tasks/admintools-replication-cancel.html
[14] https://docs.alfresco.com/../tasks/admintools-replication-edit.html
[15] https://docs.alfresco.com/../tasks/admintools-replication-delete.html
[16] https://docs.alfresco.com/admintools-replication-delete.html
[17] https://docs.alfresco.com/admintools-replication-edit.html