In TiUP, mirror is an important concept. TiUP currently supports two forms of mirroring:
- Local mirror: the TiUP client and the mirror are on the same machine, and the client accesses the mirror through the file system.
- Remote mirror: the TiUP client and the mirror are not on the same machine, and the client accesses the mirror through network.
tiup mirror command is used to manage mirrors and provides ways to create mirrors, distribute components, and manage keys.
tiup mirror <command> [flags]
<command> stands for sub-commands. For the list of supported sub-commands, refer to the command list below.
- genkey: generates the private key file
- sign: signs a specific file using a private key file
- init: initiates an empty mirror
- set: sets the current mirror
- grant: grants a new component owner for the current mirror
- publish: publishes new components to the current mirror
- modify: modifies the attributes of the components in the current mirror
- rotate: updates the root certificate in the current mirror
- clone: clones a new mirror from an existing one
- merge: merges mirrors