OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Deployer

V2.7.0Community Edition
  • What is OBD
  • Quick Start
    • Install and configure OBD
    • Quickly start OceanBase Database
    • Deploy an OceanBase cluster on the GUI
  • OBD Command
    • Quick deployment command
    • Cluster commands
    • Mirror and repository commands
    • Testing commands
    • Tool commands
    • obdiag commands
    • Telemetry commands
  • User Guide
    • Configuration files
    • Deploy through GUI
      • GUI operation overview
      • Deploy OCP through the GUI
    • Deploy through CLI
      • Deploy OceanBase Database on a single OBServer node
      • Deploy OCP Express by using commands
      • Deploy and use Config Server
      • Deploy OBLogProxy by using the CLI
      • Use OCP to take over a cluster deployed by OBD
      • Add GUI-based monitoring for an existing cluster
      • Upgrade OCP Express
      • Upgrade OceanBase Database
      • Physical Standby Database
        • Deploy primary and standby tenants by using OBD
        • Switch the roles of tenants and decouple a standby tenant from the primary tenant
      • Scale out a cluster and change cluster components
  • FAQ
    • FAQ
    • How do I upgrade an OBProxy to obproxy-ce 3.2.3?
  • Mode configuration rules
  • Error codes
  • Release Notes
    • Version rules
    • V2.7
      • OceanBase Deployer V2.7.0
    • V2.6
      • OceanBase Deployer V2.6.2
      • OceanBase Deployer V2.6.1
      • OceanBase Deployer V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployer V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployer V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployer V2.1.0
    • V2.0
      • OceanBase Deployer V2.0.1
      • OceanBase Deployer V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V2.7.0

Mirror and repository commands

Last Updated:2026-09-04 08:21:29

obd mirror clone
obd mirror create
obd mirror list
obd mirror update
obd mirror disable
obd mirror enable
obd mirror add-repo

OBD provides multiple-level commands. You can use the -h/--help option to view the help information of sub-commands. Similarly, you can also use -v/--verbose to view the detailed execution process of commands when the execution of sub commands reports an error.

obd mirror clone

Copy an RPM package to the local mirror repository. You can run the corresponding OBD cluster command to start the mirror.

obd mirror clone <path> [-f]

path specifies the path of the RPM package.

The -f option is --force. -f is optional. This option is disabled by default. If it is enabled and a mirror of the same name exists in the repository, the copied mirror will forcibly overwrite the existing one.

obd mirror create

Creates a mirror based on the local directory. When OBD starts a user-compiled open-source OceanBase software, you can run this command to add the compilation output to the local repository. Then, you can run the corresponding obd cluster command to start the mirror.

obd mirror create -n <component name> -p <your compile dir> -V <component version> [-t <tag>] [-f]

For example, you can compile an OceanBase cluster based on the source code. Then, you can run the make DESTDIR=./ install && obd mirror create -n oceanbase-ce -V 3.1.0 -p ./usr/local command to add the compilation output to the local repository of OBD.

This table describes the corresponding options.

Option
Required
Data type
Description
-n/--name Yes string The component name. If you want to compile an OceanBase cluster, set this option to oceanbase-ce. If you want to compile ODP, set this option to obproxy-ce.
-p/--path Yes string The directory that stores the compilation output. OBD will automatically retrieve files required by the component from this directory.
-V/--version Yes string The component version.
-t/--tag No string The mirror tags. You can define one or more tags for the created mirror. Separate multiple tags with commas (,).
-f/--force No bool Specifies whether to forcibly overwrite an existing mirror or tag. This option is disabled by default.

obd mirror list

Shows the mirror repository or mirror list.

obd mirror list [mirror repo name]

mirror repo name specifies the mirror repository name. This parameter is optional. When it is not specified, all mirror repositories will be returned. When it is specified, only the specified mirror repository will be returned.

obd mirror update

Synchronizes the information of all remote mirror repositories.

obd mirror update

obd mirror disable

Disable remote mirror repositories. To disable all the remote mirror repositories, run the obd mirror disable remote command.

obd mirror disable <mirror_repo_name>

Parameter mirror repo name specifies the mirror repository name. When you specify remote, all the remote mirror repositories are disabled.

obd mirror enable

Enable remote mirror repositories.

obd mirror enable <mirror repo name>

Parameter mirror repo name specifies the mirror repository name. When you specify remote, all the remote mirror repositories are enabled.

obd mirror add-repo

You can use this command to add a file to a remote image repository.

obd mirror add-repo <url>

The url parameter specifies the download URL of the image file to be added.

Previous topic

Cluster commands
Last

Next topic

Testing commands
Next
on this page
obd mirror clone
obd mirror create
obd mirror list
obd mirror update
obd mirror disable
obd mirror enable
obd mirror add-repo