Alfresco Replication Jobs

Replication jobs is a feature that allows you to control the replication of content between different Alfresco repositories.
You manage replication jobs using the Admin Console tool in Alfresco Share, which provides the user interface for the replication service.
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 allows you to cancel replications. The replication service finds the nodes that need to be transferred, and then it delegates to the transfer service.
Before you can use the replication jobs feature, you must set up transfer target definitions to specify where the transfer should be sent.


Transfer target for replication jobs

To use the replication jobs feature for replicating content across Alfresco repositories, you need to create a transfer target definition (in the source Alfresco server) to specify where the transfer should go.
The files that control and monitor the transfer service are stored using a folder in Alfresco Share, in the Transfers space underData Dictionary. The Transfer Target Groups space contains the transfer target definitions that specify the destination of the transfer. The group level below this space, called Default Group, is used to classify different sets of transfer targets.
On the source Alfresco server, browse to Company Home > Data Dictionary > Transfers > Transfer Target Groups > Default Group.Create a folder for the new transfer target.         For example, create a folder called Transfer1.


    Edit the properties for the Transfer1 and modify the following fields:

    FieldWhat is it?
    Endpoint HostType the host name of the target server.
    Endpoint PortType the port number of the target server. For example, type 8080.
    User NameType a user name of an account on the target server.
    PasswordType a password for the user account.
    EnabledClick this checkbox to enable the transfer target.
    A rule defined on the Default Group folder specializes the type of any folder created within it. The type of the folder is set to trx:transferTarget, which you can then complete through the user interface. 

    Configure Share to open locked content.

    1. Locate the repositoryId by browsing to the remote server's CMIS landing page using the following URL:
      http://{server}:{port}/alfresco/service/cmis/index.html
      The repositoryId field is displayed in the CMIS Repository Information panel.
      Alfreso CMIS Content Repository
    2. Open the <web-extension>\share-config-custom.xml.sample file.
    3. Locate the following example configuration:
       <config evaluator="string-compare" condition="Replication">
            <share-urls>
               <!--
                  To discover a Repository Id, browse to the remote server's CMIS landing page at:
                    http://{server}:{port}/alfresco/service/cmis/index.html
                  The Repository Id field is found under the "CMIS Repository Information" expandable panel.
      
                  Example config entry:
                    <share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
               -->
            </share-urls>
         </config>
    4. Modify the share-url repositoryId tag with the remote server's repositoryId value, plus the remote server's URL.
      For example:
      <share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
    5. Save the sample file without the .sample extension, or alternatively, you can copy this configuration setting directly to yourshare-config-custom.xml file.
    6. Restart the Alfresco server.


    • Verify that the target server is set up correctly.
    • Log in to the source server.
    • Create a folder on the source server.
    • For example, in Company Home, create Folder1.
    • Create a job with the source as Folder1 and a transfer target as Transfer1. Refer to Creating a new replication job.

    • Run the new job.
    • On the target server, open the folder that contains the source for the job (Folder1).
    • On the target server, click View in Source Repository.
    • Folder1 opens in the source repository.

    Share this: