title | summary |
---|---|
tiup cluster meta restore |
To restore the TiUP meta file, use the `tiup cluster meta restore` command with cluster name and backup file path. The restore operation overwrites the current meta file, so it should only be done when the file is lost. The `-h` or `--help` option prints help information. The output includes the execution logs of tiup-cluster. |
To restore the TiUP meta file, you can use the tiup cluster meta restore
command to restore from the backup file.
tiup cluster meta restore <cluster-name> <backup-file> [flags]
<cluster-name>
is the name of the cluster to be operated on.<backup-file>
is the path to the TiUP meta backup file.
Note:
The restore operation overwrites the current meta file. It is recommended to restore the meta file only when it is lost.
- Prints the help information.
- Data type:
Boolean
- This option is disabled by default and its default value is
false
. To enable this option, you can add this option to the command, and pass thetrue
value or do not pass any value.
The execution logs of tiup-cluster.