Hi! Please what is the used case of --data-dir (Restoring an etcd cluster)? and . . .

Kaoutar Ben Tahar:
Hi! Please what is the used case of --data-dir (Restoring an etcd cluster)? and the data directory (path) we have to specify it ourselves, it’s not giving? also do we have to stop all controlplane components before restoring?

unnivkn:
Hi @Kaoutar Ben Tahar we don’t want to mess up the existing data, so just restoring some pervious backup data to a new directory, using --data-dir parameter. fyi:

unnivkn:
https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#restoring-an-etcd-cluster

Kaoutar Ben Tahar:
@unnivkn thank you

Ryebridge:
Hey @unnivkn Do you mean the instructions in the course where restore to a directory and then update the new directory should not be done in a production env ?

unnivkn:
Hi @Ryebridge nope… I mean create a new folder & restore in it, instead of cleanup or overwriting the existing data.