8.15. 以可同步格式导出存储库
在系统资源方面,导出存储库可能是一个非常昂贵的操作。典型的 Red Hat Enterprise Linux 树可能会占用卫星服务器中的多个千兆字节空间。
在这种情况下,您可以使用 Incremental Export 来导出自上导出以来更改的内容片段。增量导出通常会导致存档文件比完整导出要小。
以下流程显示了库生命周期阶段中存储库的增量导出。
流程
创建增量导出:
hammer content-export incremental repository \ --organization="My_Organization" \ --product="My_Product" \ --name="My_Repository" \ --format=syncable
# hammer content-export incremental repository \ --organization="My_Organization" \ --product="My_Product" \ --name="My_Repository" \ --format=syncableCopy to Clipboard Copied! Toggle word wrap Toggle overflow 可选:查看导出的数据:
find /var/lib/pulp/exports/Default_Organization/Export-SYNCABLE-Red_Hat_Ansible_Engine_2_for_RHEL_8_x86_64_RPMs-1/2.0/2023-03-09T10-55-48-05-00/ -name "*.rpm"
# find /var/lib/pulp/exports/Default_Organization/Export-SYNCABLE-Red_Hat_Ansible_Engine_2_for_RHEL_8_x86_64_RPMs-1/2.0/2023-03-09T10-55-48-05-00/ -name "*.rpm"Copy to Clipboard Copied! Toggle word wrap Toggle overflow