mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Documentation: v2: add -- for force new cluster
this doc is inconsistent between --force-new-cluster and -force-new-cluster. Use the latter as it is the preferred option in etcd.
This commit is contained in:
parent
d984482d1b
commit
d05d522398
@ -239,13 +239,13 @@ This command will rewrite some of the metadata contained in the backup (specific
|
|||||||
|
|
||||||
#### Restoring a backup
|
#### Restoring a backup
|
||||||
|
|
||||||
To restore a backup using the procedure created above, start etcd with the `-force-new-cluster` option and pointing to the backup directory. This will initialize a new, single-member cluster with the default advertised peer URLs, but preserve the entire contents of the etcd data store. Continuing from the previous example:
|
To restore a backup using the procedure created above, start etcd with the `--force-new-cluster` option and pointing to the backup directory. This will initialize a new, single-member cluster with the default advertised peer URLs, but preserve the entire contents of the etcd data store. Continuing from the previous example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
etcd \
|
etcd \
|
||||||
-data-dir=%backup_data_dir% \
|
-data-dir=%backup_data_dir% \
|
||||||
[-wal-dir=%backup_wal_dir%] \
|
[-wal-dir=%backup_wal_dir%] \
|
||||||
-force-new-cluster \
|
--force-new-cluster \
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user