2.18. hammer content-export


准备内容以导出到断开连接的 Katello

Usage:
    hammer content-export [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 complete                      Prepare content for a full export to a disconnected Katello
 generate-metadata             Writes export metadata to disk for use by the importing Katello. This command only needs to be used if the export was performed asynchronously or if the metadata was lost
 incremental                   Prepare content for an incremental export to a disconnected Katello
 list, index                   View content view export histories

Options:
 -h, --help                    Print help

2.18.1. hammer content-export complete

准备内容以完全导出到断开连接的 Katello

Usage:
    hammer content-export complete [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 library                       Performs a full export of the organization's library environment
 version                       Performs a full export a content view version

Options:
 -h, --help                    Print help

2.18.1.1. hammer 内容导出完整库

对机构的库环境执行完整导出

Usage:
    hammer content-export complete library [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB           Split the exported content into archives no greater than the specified size in gigabytes.
 --destination-server DESTINATION_SERVER Destination Server name
 --fail-on-missing-content               Fails if any of the repositories belonging to this organization are unexportable.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.18.1.2. hammer 内容导出完整版本

执行完整导出内容视图版本

Usage:
    hammer content-export complete version [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB                       Split the exported content into archives no greater than the specified size in gigabytes.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fail-on-missing-content                           Fails if any of the repositories belonging to this version are unexportable.
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Filter versions by version number.
 -h, --help                                          Print help

2.18.2. hammer content-export generate-metadata

将导出元数据写入磁盘,供导入 Katello 使用。只有在异步执行导出或者元数据丢失时才需要使用这个命令

Usage:
    hammer content-export generate-metadata [OPTIONS]

Options:
 --id ID                       Generate metadata based on specified export history
 --task-id TASK_ID             Generate metadata based on output of the specified export task
 -h, --help                    Print help

2.18.3. hammer content-export incremental

为断开连接的 Katello 的增量导出准备内容

Usage:
    hammer content-export incremental [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 library                       Performs an incremental export of the organization's library environment
 version                       Performs an incremental export of a content view version

Options:
 -h, --help                    Print help

2.18.3.1. hammer 内容增量库

对机构的库环境执行增量导出

Usage:
    hammer content-export incremental library [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB           Split the exported content into archives no greater than the specified size in gigabytes.
 --destination-server DESTINATION_SERVER Destination Server name
 --fail-on-missing-content               Fails if any of the repositories belonging to this organization are unexportable.
 --from-history-id FROM_HISTORY_ID       Export history identifier used for incremental export. If not provided the most recent export history will be used.
 --organization ORGANIZATION_NAME        Organization name to search by
 --organization-id ORGANIZATION_ID       Organization identifier
 --organization-label ORGANIZATION_LABEL Organization label to search by
 --organization-title ORGANIZATION_TITLE Organization title
 -h, --help                              Print help

2.18.3.2. hammer 内容导出增量版本

对内容视图版本执行增量导出

Usage:
    hammer content-export incremental version [OPTIONS]

Options:
 --async                                             Do not wait for the task
 --chunk-size-gb CHUNK_SIZE_GB                       Split the exported content into archives no greater than the specified size in gigabytes.
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view numeric identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fail-on-missing-content                           Fails if any of the repositories belonging to this version are unexportable.
 --from-history-id FROM_HISTORY_ID                   Export history identifier used for incremental export. If not provided the most recent export history will be used.
 --id ID                                             Content view version identifier
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Lifecycle environment name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID
 --name NAME                                         Name to search by
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --version VERSION                                   Filter versions by version number.
 -h, --help                                          Print help

2.18.4. hammer content-export list

查看内容视图导出历史

Usage:
    hammer content-export <list|index> [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   Content view identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --destination-server DESTINATION_SERVER             Destination Server name
 --fields FIELDS                                     Show specified fields or predefined field sets only. (See below)
                                                     Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                                     JSON is acceptable and preferred way for complex parameters
 --full-result FULL_RESULT                           Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --id ID                                             Content view version export history identifier
 --order ORDER                                       Sort field and order, eg. 'id DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   Organization identifier
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --organization-title ORGANIZATION_TITLE             Organization title
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --search SEARCH                                     Search string
 --type TYPE                                         Export Types
                                                     Possible value(s): 'complete', 'incremental'
 -h, --help                                          Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Destination server      | x   | x       |
  Path                    | x   | x       |
  Type                    | x   | x       |
  Content view version    | x   | x       |
  Content view version id | x   | x       |
  Created at              | x   | x       |
  Updated at              | x   | x       |
  ------------------------|-----|---------|-----

Search / Order fields:
  content_view_id          integer
  content_view_version_id  integer
  id                       integer
  type                     string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.