Skip to content

Commit

Permalink
Merge pull request #335 from Gdetrane/add-copy-repo-to-docs
Browse files Browse the repository at this point in the history
Add docs page for copy-repo [RHELDST-28512]
  • Loading branch information
rohanpm authored Jan 14, 2025
2 parents bf460ab + a999d43 commit 875334c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/copy-repo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
copy-repo
=========

.. argparse::
:module: pubtools._pulp.tasks.copy_repo
:func: doc_parser
:prog: pubtools-pulp-copy-repo


Examples
........

Copy content from one repository to another:

.. code-block::
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:

.. code-block::
pubtools-pulp-copy-repo \
--content-type iso \
repo-1,repo-2 repo-3,repo-4
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ content via `Pulp <https://pulpproject.org/>`_.
:caption: Command Reference:

clear-repo
copy-repo
delete
fix-cves
garbage-collect
Expand Down

0 comments on commit 875334c

Please sign in to comment.