copy-repo¶
<undocumented task>
usage: pubtools-pulp-copy-repo [-h] [--debug] [--udcache-url UDCACHE_URL]
[--udcache-user UDCACHE_USER]
[--udcache-password UDCACHE_PASSWORD]
[--udcache-certificate UDCACHE_CERTIFICATE]
[--udcache-certificate-key UDCACHE_CERTIFICATE_KEY]
[--pulp-url PULP_URL] [--pulp-user PULP_USER]
[--pulp-password PULP_PASSWORD]
[--pulp-certificate PULP_CERTIFICATE]
[--pulp-certificate-key PULP_CERTIFICATE_KEY]
[--pulp-insecure]
[--pulp-throttle PULP_THROTTLE] [--pulp-fake]
[--skip SKIP] [--content-type CONTENT_TYPE]
repopairs [repopairs ...]
Positional Arguments¶
- repopairs
repository pair(s) (source, destination) to be copied. e.g. repo-A,repo-B repo-C,repo-D
Named Arguments¶
- --debug, -d
Show debug logs; can be provided up to three times to enable more logs
Default: 0
- --skip
skip given comma-separated sub-steps
- --content-type
copy only content of these comma-separated type(s). e.g. –content-type=(rpm, srpm, modulemd, iso, erratum)
Unified Downloads Cache environment¶
- --udcache-url
Base URL of UD cache flush API; if omitted, UD cache flush features are disabled.
- --udcache-user
Username for UD cache flush
- --udcache-password
Password for UD cache flush (or set UDCACHE_PASSWORD)
Default: “”
- --udcache-certificate
Client certificate for UD cache flush (or set UDCACHE_CERT)
Default: “”
- --udcache-certificate-key
Client key for UD cache flush (or set UDCACHE_KEY)
Default: “”
Pulp environment¶
- --pulp-url
Pulp server URL
- --pulp-user
Pulp username
- --pulp-password
Pulp password (or set PULP_PASSWORD environment variable)
- --pulp-certificate
Pulp certificate. Can also be a single file (.pem)
- --pulp-certificate-key
Pulp certificate key
- --pulp-insecure
Allow unverified HTTPS connection to Pulp
Default: False
- --pulp-throttle
Allows to enqueue or run only specified number of Pulp tasks at one moment (or set PULP_THROTTLE environment variable)
- --pulp-fake
Use a fake in-memory Pulp client rather than interacting with a real server. For development/testing only, may have limited functionality.
Default: False
Examples¶
Copy content from one repository to another:
pubtools-pulp-copy-repo \
--content-type rpm,srpm \
repo-A,repo-B
This command copies RPM and SRPM content from repository repo-A to repo-B. If the user provides a non existing repo, the command fails.
Provide multiple repository pairs to copy them in one command:
pubtools-pulp-copy-repo \
--content-type iso \
repo-1,repo-2 repo-3,repo-4