2.17. Hammer 内容导出

准备将导出到断开连接的 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.17.1. Hammer 内容导出完整

准备内容,使完整导出至断开连接的 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
 repository                    Performs a full export of a repository
 version                       Performs a full export a content view version

Options:
 -h, --help                    Print help

2.17.1.1. Hammer 内容导出完整库

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

Usage:
    hammer content-export complete library [OPTIONS]

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

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.1.2. Hammer content-export complete repository

执行存储库的完整导出

Usage:
    hammer content-export complete repository [OPTIONS]

Options:
 --async                       Do not wait for the task
 --chunk-size-gb NUMBER        Split the exported content into archives no greater than the specified size in
                               gigabytes.
 --id NUMBER                   Repository identifier
 --name VALUE                  Filter repositories by name.
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --product VALUE               Product name to search by
 --product-id NUMBER           Product numeric identifier
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.1.3. Hammer 内容导出完整版本

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

Usage:
    hammer content-export complete version [OPTIONS]

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

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.2. Hammer content-export generate-metadata

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

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

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

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.3. Hammer 内容导出增量

将增量导出的内容准备到断开连接的 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
 repository                    Performs an incremental export of a repository
 version                       Performs an incremental export of a content view version

Options:
 -h, --help                    Print help

2.17.3.1. Hammer 内容导出增量库

对组织的库环境执行增量导出

Usage:
    hammer content-export incremental library [OPTIONS]

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

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.3.2. Hammer content-export incremental repository

执行存储库的增量导出

Usage:
    hammer content-export incremental repository [OPTIONS]

Options:
 --async                       Do not wait for the task
 --chunk-size-gb NUMBER        Split the exported content into archives no greater than the specified size in
                               gigabytes.
 --from-history-id NUMBER      Export history identifier used for incremental export. If not provided the most
                               recent export history will be used.
 --id NUMBER                   Repository identifier
 --name VALUE                  Filter repositories by name.
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization ID
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --product VALUE               Product name to search by
 --product-id NUMBER           Product numeric identifier
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.3.3. Hammer 内容导出增量版本

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

Usage:
    hammer content-export incremental version [OPTIONS]

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

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.17.4. Hammer 内容导出列表

查看内容视图导出历史记录

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

Options:
 --content-view VALUE             Content view name to search by
 --content-view-id NUMBER         Content view identifier
 --content-view-version VALUE     Content view version number
 --content-view-version-id NUMBER Content view version identifier
 --destination-server VALUE       Destination Server name
 --fields LIST                    Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN            Whether or not to show all results
 --id NUMBER                      Content view version export history identifier
 --order VALUE                    Sort field and order, eg. 'id DESC'
 --organization VALUE             Organization name to search by
 --organization-id NUMBER         Organization identifier
 --organization-label VALUE       Organization label to search by
 --organization-title VALUE       Organization title
 --page NUMBER                    Page number, starting at 1
 --per-page NUMBER                Number of results per page to return
 --search VALUE                   Search string
 --type ENUM                      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       |
  ------------------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  content_view_id          integer
  content_view_version_id  integer
  id                       integer
  type                     string