API call debmirror

Make local partial repository mirror via :debpkg:`debmirror`

This may be useful if you plan on publishing a stripped-down (f.e., only certain repos,
only ``stable``, omit rollbacks) variant of your repo somewhere remote.

Authorization: ADMIN
Optional arguments
Clear Paste default
suites: Suite names (like 'stable', 'unstable')

Format: List as comma-separated strings
Clear Paste default
rollbacks: Select (maximal) <n> rollback sources (``0``: no rollbacks, ``< 0``: all rollbacks)

Format: Integer number
Clear Paste default
repositories: Repository identities (like 'test', the default sandbox repo identity)

Format: List as comma-separated strings
Clear Paste default
codenames: Codenames (like 'buster', 'bullseye')

Format: List as comma-separated strings
Clear Paste default
architectures: Architectures to mirror (``--arch`` in debmirror)

Usually, you just want all, so the default already lists all currently supported Debian/Ubuntu architectures (but will only mirror the architectures actually found)

Format: Plain string
Clear Paste default
components: Components to mirror (``--section`` in debmirror)

Usually, you just want all, so the default already lists all known Debian/Ubuntu components (but will only mirror the components actually found)

Format: Plain string
Clear Paste default
destination: Mirror destination dir (``mirrordir`` in debmirror)

* ``{}`` will be replaced by repository identity
* Directory must be accessible by user ``mini-buildd``

*BE CAREFUL* with this value -- anything in this directory will be *HAPPILY REPLACED* by the mirror only


Format: Plain string
output: Desired result format

html: Return result as HTML (popup with JS, else full HTML page)
plain: Plain result
json: Return raw json result


Format: Choice