Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.66 KB

proc_exporting-a-content-view-version-in-a-syncable-format.adoc

File metadata and controls

46 lines (40 loc) · 1.66 KB

Exporting a Content View Version in a Syncable Format

You can export a version of a Content View to a syncable format that you can use to create your custom CDN. After you have exported the Content View, you can do either of the following:

  • Synchronize the content from your custom CDN over HTTP/HTTPS.

  • Import the content using hammer content-import. Note that this requires both the Export and Import servers to run {Project} {ProjectVersion}.

Prerequisites
  • Ensure that you set the download policy to Immediate for all repositories within the Content View you export. For more information, see [Download_Policies_Overview_{context}].

  • Ensure that you synchronize products you export to the required date.

  • Ensure that the user exporting the content has the Content Exporter role.

To Export a Content View Version
  • List versions of the Content View that are available for export:

    # hammer content-view version list \
    --content-view="My_Content_View" \
    --organization="My_Organization"
Procedure
  1. Get the version number of desired version. The following example targets version 1.0 for export:

    # hammer content-export complete version \
    --content-view="Content_View_Name" \
    --version=1.0 \
    --organization="My_Organization" \
    --format=syncable
  2. Optional: Verify that the exported content is located in the export directory:

    # ls -lh /var/lib/pulp/exports/My_Organization/My_Content_View_Name/1.0/2021-02-25T18-59-26-00-00/