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"