---
title: "Exporting content from a Content Hub publisher"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to export content from a Content Hub publisher with our step-by-step guide. Configure your Drupal site, manage the export queue, and process content changes efficiently for seamless content syndication."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/content-hub/exporting-content-content-hub-publisher"
id: "131a4afe-c0a1-4fc8-827d-a094a0ec5fb2"
---

Table of contents will be added.

Use the following checklist to export content from a publisher:

S.No.

Task

1

[Configure your Drupal site as a Content Hub publisher](#configuring-your-drupal-site-as-a-publisher)

2

Create or update content on your publisher using standard Drupal processes

3

[Add content to the export queue on the publisher](#adding-content-changes-to-export-queue)

4

[Process the export queue](#processing-the-export-queue)

Configuring your Drupal site as a publisher
-------------------------------------------

To configure your Drupal site as a publisher:

*   [Install Content Hub](/drupal-starter-kits/add-ons/content-hub/installing-content-hub "Installing Content Hub").
*   Enable the `acquia_contenthub_publisher` module through the Drupal admin interface.  
    When activating the `acquia_contenthub_publisher` module on an existing Drupal site functioning as a Content Hub subscriber, only the content exclusive to that Drupal site can be published. However, the content that is imported from other publishers cannot be re-exported. Each entity is limited to having only one publisher.

[Adding content changes to the export queue](/drupal-starter-kits/add-ons/content-hub/installing-content-hub "Installing Content Hub")
--------------------------------------------------------------------------------------------------------------------------------------

### Automatic addition of content

By default, Content Hub automatically adds content changes to the export queue when the content is:

*   Created or updated
    
*   Flagged as published
    

Draft or unpublished content is not automatically enqueued for export. However, it can be exported if:

*   The entity is a dependency of a published entity.
*   It has at least one revision for translation of a published entity.
*   The Content Moderation module and the Workflows module are used with translations.

#### Automatic addition of translated content

Draft or unpublished translations are automatically added to the export queue when the default language or parent entity is published. For instance, if the English translation of a node is published and the Japanese translation is still a draft, the draft is also exported.

### Manual export mode

Note

The manual export mode is available in Content Hub 3.5.0 and later.

With the manual export mode, you can control when to add content to export queue. For example, if you require multiple approvals before the syndication begins, you can use the manual export mode and prevent content changes from being automatically added to the export queue.

To enable the manual export mode:

1.  Go to **Administration** > **Configuration** > **Acquia Content Hub**.
2.  Select the **Export** tab.
3.  In the **Export Control** fieldset, enable the **Enable manual export mode** checkbox.
4.  Click **Save Export Settings**.

![content-hub_export-queue-manual-export-mode.png](https://acquia.widen.net/content/4c9dfc4a-b51e-4fbd-a42b-7bb677727e24/web/content-hub_export-queue-manual-export-mode.png)

After the manual export mode is enabled, content changes are not automatically added to the export queue.

To manually enqueue content entities to the export queue:

1.  Go to **Administration** > **Content** > **Acquia Content Hub Export Tracker**.
2.  (_Optional)_ Filter the view by title, UUID, entity type, or status.
3.  Add entities to the export queue:
    *   To add a single row, click the **Add to export queue** button on the row.
    *   To add multiple rows, select the checkboxes for the required rows, select the **Add to export queue** option from the **Action** dropdown, and then click **Apply to selected items**.
        

Note

Some entities cannot be added to the export queue directly. They are only exported when their parent entities are exported. The Content Hub Export Tracker view cannot override this behavior. For more information, see [Eligible and ineligible entities](/drupal-starter-kits/add-ons/content-hub/eligibile-and-ineligible-entities "Eligibile and ineligible entities").

![content-hub_export-tracker-view.png](https://acquia.widen.net/content/0050601a-a54d-4ac9-8a78-b779212dc17d/web/content-hub_export-tracker-view.png)

Processing the export queue
---------------------------

The export queue is processed in the following ways:

### Using scheduled jobs

To process the export queue asynchronously, Acquia recommends you to [configure scheduled jobs](/drupal-starter-kits/add-ons/content-hub/configuring-scheduled-jobs "Configuring scheduled jobs"). Additionally, you can set up the scheduled jobs to run on dedicated cron servers if your Drupal Cloud subscription provides such servers.

### Using Drush

To process the export queue manually, Acquia recommends you to use Drush. Acquia provides the `ach-export` Drush command for processing the queue.

Important

Using Drush instead of the Drupal UI avoids the risk of PHP timeouts when working with large datasets.

To process the publisher export queue, run the following command:

    drush acquia:contenthub-export-queue-run --uri=https://site_uri

For information about the command options, see [acquia:contenthub-export-queue-run](/node/56502#acquia-contenthub-export-queue-run).

### Using the Drupal UI

To manually process the export queue using the Drupal UI:

1.  Go to **Administration** > **Configuration** > **Web services** > **Acquia Content Hub**.
2.  Click the **Export** tab.  
    In the **Run Export Queue** fieldset, you see the count of items in the export queue.
3.  Click **Export Items** to initiate the export process.

![Export tab under Export Queue Acquia Content Hub Settings](https://acquia.widen.net/content/ac3d6b12-8150-4329-a2a3-27d0d9b7c48e/web/Content%20Hub%20Export%20Queue%20admin%20page.png)

Purging the export queue
------------------------

To clear the export queue on a publisher site:

1.  Go to **Administration** > **Configuration** > **Web services** > **Acquia Content Hub**.
2.  Click **Export** tab.
3.  When the queue has items, locate **Purge existing queues** within the **Run Export Queue** section.
4.  Click **Purge** to empty the export queue.

Excluding entities from export
------------------------------

The publisher exports all content by default. However, there might be a necessity to exclude specific types of content from export due to security concerns or other reasons. For more information, refer to [Excluding entities from export](/drupal-starter-kits/add-ons/content-hub/excluding-entities-export "Excluding entities from export").

Viewing completed exports using the Publisher’s Dashboard
---------------------------------------------------------

To view completed exports using the Publisher’s Dashboard:

*   Navigate to the Publisher’s Dashboard interface.
*   Click **Content**.
*   Review the content on the Content page.

The page displays the available content entities within the Content Hub service.