Content sync

Advanced license required

Features described on this page require the Xperience by Kentico Advanced license tier.

Content synchronization allows you to easily transfer new and updated content from one “instance” of Xperience by Kentico to another. In this context, instances are Xperience applications hosting the same website or project, typically on another server and domain.

The purpose of content sync is to help manage content when using multiple environments. For example, your project’s developers may have a local Development instance, from which initial content is sent to a hosted Staging instance. The staging instance is accessible only by editors and other staff, who use it to prepare content updates. The final content is then synchronized during regular releases to a public-facing Production instance.

Development → Staging → Production

Prerequisites

Your project’s administrators need to correctly set up content sync for all involved instances. For detailed information, see Content sync configuration.

Supported content

Currently, content sync is supported for reusable content items. Support for synchronizing website channel pages will be added in the future.

The following data is automatically synchronized together with content items:

  • Content item assets (physical files)
    • For image assets, only the primary optimized image is synchronized. Image variants are generated automatically when requested for the first time on the target instance.
  • Linked content items (includes both items linked via fields and assets used in rich text content via the Insert image and Insert link options)
    • The synchronization cascades if the linked items themselves link to other content items.
  • Taxonomies and tags assigned to synchronized items
  • Content folders where synchronized items are placed (Smart folders are not synchronized)

What is not synchronized?

The following limitations apply when synchronizing content items:

  • Only items with the Published or Unpublished status can be synchronized.
    • If a linked content item is currently not published, its latest Published version is synchronized. Linked items that were never published are not synchronized at all.
    • Synchronization of unpublished items only works for items that already exist on the target instance in a Published state. If you synchronize a “new” content item with the Unpublished status, no changes are made on the target.
  • You cannot “select” a deleted content item for synchronization. Content synchronization cannot be used to delete items on the target instance.
  • Only the currently selected language variant is included in each synchronization. You can switch the language in Content hub and perform a separate synchronization for each language.
  • If a content item is scheduled to be published or scheduled to be unpublished, this information is not included in the synchronization.
  • Smart folders are not synchronized.

Additionally, the following data is required by content items, but is not included in content synchronization:

You or your project’s administrators need to ensure that the target instance has exactly the same set of these objects as the source instance. For example, an error will occur if you try to synchronize a content item for which an exactly matching content type is not available on the target.

Editing process when using content sync

Content sync is designed to be used with only a single source of content. For content that supports content sync, only edit on the first source instance in your content sync chain, and then use the sync feature to transfer content. Any required changes of data that cannot be synchronized must be done by developers using a standard deployment.

If you manually edit content directly on the target instance, you risk losing the changes when content is synchronized from the source. You may also cause incompatibility of required objects, such as content types or languages, which would prevent future synchronization.

For example, if you have a setup with one Staging instance as a source and a public-facing Production instance, only edit content on the staging instance, and use the content sync feature to move changes to production.

Workflow and content sync

If you use workflows to control the lifecycle of your content, only set up and apply the workflow on the source instance where you edit. Any workflow applied on the target instance is ignored, as content items are always transferred with the Published or Unpublished status and a completed workflow cycle.

Synchronize content items

Recommended content size per synchronization

We recommend that you do not include more than 200 content items and 200 MB of related asset files within a single synchronization.

Larger synchronizations may still work correctly, depending on the performance of your application’s servers and your connection speed. However, splitting large content updates into multiple synchronizations is generally a better approach. This reduces the chance of issues during the synchronization, for example due to network errors.

  1. Open the Content hub application.
  2. Select the content items you want to synchronize.
  3. Use the Sync ( ) action.
    Sync content items
  4. Choose when you want the content to be restored on the target instance:
    • Restore on the target immediately – the content will be transferred to the target instance and restored as soon as possible. The restoration may take up to 30 seconds to start, may be delayed by other content sync operations, and may take some time depending on the size of the synchronized content. You can view the progress in the content sync dialog.
    • Postpone restoration on the target – select a date and time in the future. The content will be transferred to the target instance and restored at the scheduled time. You can track scheduled synchronizations on the target instance.

    Scheduling multiple synchronizations

    If you are planning multiple scheduled synchronizations, make sure to set the restoration times according to the order in which you want the content to be created or updated. Leave appropriate time intervals for the restoration to finish for each synchronization (at least 15 minutes are recommended).

    If you schedule multiple synchronizations with updates for the same content items, the last restored synchronization overwrites the previous ones.
  5. Review the content items that will be synchronized.
    • Any content items that cannot be synchronized are grayed out in the list. For example, this occurs if items that have a different status than Published or Unpublished are selected for synchronization.
    • Keep in mind that linked content items are not displayed in the list, but will also be synchronized.
  6. Select Sync.

The content sync dialog displays the progress of the synchronization and informs you about the result.

Track incoming synchronizations

When working on an Xperience instance that is the target of content synchronization, you can monitor synchronizations that recently occurred or are scheduled to take place in the Content synchronization application.

View planned or performed synchronizations

If you need to cancel or reschedule a scheduled restoration, Delete ( ) the given synchronization on the target instance. You can then synchronize the content again on the source instance and schedule the restoration at a different time.

Synchronization cleanup

The system automatically removes synchronizations once per day. The cleanup does not affect synchronizations with the Ready status that are scheduled for restoration in the future.