Note that you'll need to have configured path.repo as well. You're missing an opening brace (thus the Failed to derive xcontent in the error message), but even fixing that you have an extra wrapper my_backup: { ... } that you should not have.
Thank you for the Reply, it is now correct I believe for I faced another error. The path.repo. I have set a value of the repository as seen in the screenshot below:
I created this in the elasticsearch.yml file, did I define it correctly? For I keep getting the "path.repo is empty" error as seen below.
Thanks for the quick reply, I have removed the commented line and placed it at the edge, as seen below. Although the error still persists, any recommendations?
I'm confused, are you on Windows or are you on Linux? Your first attempt seemed to indicate that you're on a Windows system but your second attempt looks to be something different?
You need to set path.repo to a path that exists in the filesystem and the Elasticsearch process has privileges to write to. Then you need to use that path when you use the create snapshot API.
I am using a Windows Platform, the above screenshots shows me using 'Cygwin64'. Cygwin64 or Cygwin emulates a Unix like environment in a Windows Platform. Windows command Line has an issue when I execute curl statements on.
Got it to Work Jason, thanks it was the comment(#) all along.
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.