I want to create snapshot repository in order to backup elasticsearch indices locally. However I am getting error messages, I think I am not giving correct path in location. I have posted screenshots for better explanation.
Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them
Hi Warkolm,
What is the possible way to keep backup of index data and restore it later. I think Yash is trying to use ELK service via docker container.
Hi Warkolm,
We know that is the best solution, can you provide some reference link or some github repos for this snapshot restore solution using docker-compose file because we are getting error in the docker file as mentioned in the screenshot above.
Hi Christian,
Are you talking about /mnt/data/collab/backup: /usr/share/elasticsearch/backup ? Here /mnt/data/collab/backup is the directory created by us.
Hi Chistian,
Thank you for pointing that out, I have changed the yaml file and provided the path.repo under environment.
"
environment:
path.repo: /mnt/data/collab/backup_repo
"
While running the docker services it says Access denied, the following is the error message
"
java.lang.IllegalStateException: Unable to access 'path.repo' (/mnt/data/collab/backup_repo)
Likely root cause: java.nio.file.AccessDeniedException: /mnt/data
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
"
I have already provided root access to the "backup_repo" folder
drwxrwxrwx 2 root root 4096 Aug 16 00:17 backup_repo
Hi,
We are using 1 node of elasticsearch only and given- path.repo: ["/mnt/data/collab/backup_repo"] in elasticsearch.yml
As mentioned the path has read and write access:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.