izayoi-akira commented on issue #167:
URL: https://github.com/apache/apisix-docker/issues/167#issuecomment-829785799
> @izayoi-akira please add some details about your snapshot operations.
Indeed this is a right way
local server etcd_conf:
```
etcd:
volumes:
- ./etcd_data:/etcd_data
```
which be configured by /example/docker-compose.yml
then I run :
`docker exec -it docker-apisix_etcd_1 /bin/bash`
`etcdctl --endpoints localhost:2379 snapshot save /etcd_data/snapshot.db`
it works and I download the snapshot.db file from Host Machine.
later I use etcdctl snapshot restore like this:
`etcdctl snapshot restore snapshot.db --data-dir=/etcd_data`
it error with: Error: data-dir "/etcd_data" exists
then change the data-dir:
`etcdctl snapshot restore snapshot.db --data-dir=/etcd_data_new`
error with: Error: mkdir /etcd_data_new: permission denied
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]