How to Manage Replication Jobs in Alfresco

As described in my previous blog The Replication Jobs tool in the Admin Console enables you to create and manage replication jobs in Share. 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.

Now once jobs are created admin need to manage those jobs to meets the change in the requirements.

Viewing replication job

The Replication Jobs page of the Admin Console displays a list of all existing replication jobs. For each job in this list, you can perform any of the following actions to manage and maintain the jobs. In admin console admin can check existing jobs and can check the details of each job. 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.

Editing a replication job

You can easily update existing replication jobs. In addition to changing the job details, you can use this feature to disable a job so that it will not be run.

  • On the toolbar, expand the “More” menu and click Replication Jobs in the Tools list.
  • In the Jobs section, click the job you want to edit. The job appears highlighted in the list and its details appear on the right side of the page.
    • Click Edit the Edit Replication Job page appears.
  • Edit the replication job as necessary. All job details—name, description, payload, transfer target, and schedule—are available for editing.
    • 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.
  • Click Save.

The main page displays the updated job details.

Manually running a replication job

There are times when we need to run the job manually incase scheduled job failed for various reason or there is any miscellaneous situation. You can do this at any time. If a schedule is set for the job, it remains in place and will be run at the appropriate time.

  • In the Jobs section, click the job you want to run.
    • The job appears highlighted in the list and its details appear on the right side of the page.
    • For a job to be run, it must be enabled.
  • Click Run Job 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.

Cancelling a replication job

You can cancel a job that is currently running, regardless of whether it was started automatically (that is, it is a scheduled job) or manually.

  • In the Jobs section, click the currently running job that you want to cancel.
    • There is 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.
    • If the job was already displayed, you may need to click Refresh to update the status.
  • Click Cancel Job.

The job is stopped and a report is created.

Deleting a replication job

If you no longer need a replication job, you can delete it from the Jobs list. If there is a chance you might need the job again, you may prefer to edit the job and simply disable it.

  • In the Jobs section, click the job you want to delete.
    • The job appears highlighted in the list and its details appear on the right side of the page.
  • Click Delete and confirm deletion.

Viewing replication job reports

Two reports—local and remote—are available for each replication job run successfully.

The local report is the transfer report from the sending system, which manages the content being transferred to the receiving system. The local report details the speed at which the files were transferred and other related details.

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.

  • In the Jobs section, click the job you want to view.
    • The job appears highlighted in the list and its details appear on the right side of the page.
  • Select the desired report:
    • Click View Local Report.
    • Click View Remote Report.
    • The selected report displays on the details page of the Repository Document Library.

By default, any replicated content is read-only in the target repository. This ensures the integrity of the content is not compromised by uncontrolled updates. So now if we want to use those new contents it needs to be unlocked.

Configuring Share to open locked content in the source repository

You can configure Alfresco Share to open a locked node in the source repository, where it can be edited.

Configure Share by mapping the remote repository identifier (repositoryId) and the remote Share URL. This then gives access to the remote repository.

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.

Add following entry in your

<web-extension>\share-config-custom.xml file

<config evaluator="string-compare" condition="Replication">

<share-urls>

<share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://localhost:8080/share/</share-url>

</share-urls>

</config>

Modify the share-url repositoryId tag with the remote server’s repositoryId value, plus the remote server’s URL.

This covers most of the things about the replication jobs hope you find it useful.

Looking for quality Alfresco Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , | Posted under Alfresco | RSS 2.0

Author Spotlight

mitpatoliya

mitpatoliya

I love opensource technologies working with those technologies from the time I have stepped in to the Software Industry. Alfresco CMS is my area of expertise. I have worked on various complex implementations which involved integration of Alfresco with other technologies, extensively worked with JBPM workflows and Webscripts.

Leave a Reply

Your email address will not be published. Required fields are marked *


× 3 = 15

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>