0
I am using below command to create snapshot with date appended to the filename but getting error as invalid snapshot name and it must be lowercase.
#!/bin/bash
SNAPSHOT=`date +%Y%m%d-%H%M%S`
curl -XPUT "localhost:9200/_snapshot/my_backup/$SNAPSHOT?wait_for_completion=true"
What must be lowercase? How can we guess what a valid URL looks like? Do you have documentation for the server you are connecting to? – tripleee – 2019-07-31T12:04:43.960
Looks like you are probably trying to use Elastic Search; if correct, please [edit] the question to add the relevant tags as well as a prose description in a sentence or two explaining the service or API you are trying to access and what you hope for the outcome to be.
– tripleee – 2019-07-31T12:07:05.360But indeed, your private shell variables should be lower case. Is that what you mean? That's hardly something you need human help with? – tripleee – 2019-07-31T12:08:18.943