Unable to take snapshot - Version 5.6.12

Hello,
I was able to register the snapshot successfully. However, when I try to take a backup I'm getting this error message. "No matches found..." Any help is greatly appreciated.

Register Snapshot (works fine):
sudo curl -X PUT --cacert ${cacert} --key ${key} --cert ${cert} -H "Content-Type: application/json" https://localhost:9200/_snapshot/my_backup --data '{"type": "fs","settings": {"location": "/opt/xxx/xxxx/config/data/repository","compress": true}}'
{"acknowledged":true}#

Backup Command : (Does not work)
sudo curl -X PUT --cacert ${cacert} --key ${key} --cert ${cert} -H "Content-Type: application/json" https://localhost:9200/_snapshot/my_backup/snapshot_1?wait_for_completion=true

Error Message: 
zsh: no matches found: https://localhost:9200/_snapshot/my_backup/snapshot_1?wait_for_completion=true

Additional Information:

List Indices (work fine):
sudo curl --cacert ${cacert} --key ${key} --cert ${cert} 'https://localhost:9200/_cat/indices?s=index'
yellow open sand__tenant0__alerts__1572020264685           MmAYby--TjuvzGKl-s8ijQ 1 1     0 0    192b    192b
yellow open sand__tenant0__document_link__1572019877175    vgDBkiTYTeyDs-3gQnCqAg 1 1     0 0    192b    192b
yellow open sand__tenant0__entity_link__1572019879941      Nquo8byLRgWVbpHsIpDzJw 1 1     0 0    192b    192b
yellow open sand__tenant0__transaction_link__1572019881252 eUDL2s8KThiqDZr_0z4CSw 1 1     0 0    192b    192b
yellow open sand__tenant1__account__1627589435070          ztbMqtAkQyW_wX5Zhwx91w 1 1 13948 0  11.7mb  11.7mb
yellow open sand__tenant1__alerts__1572023740785           9BthdKKBQ8GWdGcoJ0Cs5A 1 1   150 9 225.6kb 225.6kb
yellow open sand__tenant1__cash_flow_fact__1627589368390   t3OdI4aWSSWfy9ORhK3tyw 1 1  6752 0   2.6mb   2.6mb
yellow open sand__tenant1__document_link__1572023506315    DrcTGLRnTaOlAY975lcrNw 1 1    49 0  19.4kb  19.4kb
yellow open sand__tenant1__entity_link__1572023507352      xoQlXpasRweQtJ4f8BgeoA 1 1     0 0    192b    192b
yellow open sand__tenant1__party__1627590082338            wcL6zAZvQzmTw-FPepaYMQ 1 1 27118 0    31mb    31mb
yellow open sand__tenant1__transaction_link__1572023508290 OPl3inSrRHmeTJ1QZSZDhA 1 1     0 0    192b    192b
yellow open sand__tenant2__alerts__1572027693903           BQib3fLkT76US5sOayPWsQ 1 1     0 0    192b    192b
yellow open sand__tenant2__document_link__1572027414211    VFP6jPT1RW-cXtIYmAsIYA 1 1     0 0    192b    192b
yellow open sand__tenant2__entity_link__1572027417189      8CDMHV88QJ6hACl8IeBiRQ 1 1     0 0    192b    192b
yellow open sand__tenant2__transaction_link__1572027418944 H2zmdc2lTmimTLN9EN79XQ 1 1     0 0    192b    192b
yellow open sand__tenant3__alerts__1572028427988           RI-zceqRSbqH0fl87EyT_w 1 1     0 0    192b    192b
yellow open sand__tenant3__document_link__1572028128279    32y9CwhFSsWI71Yk80tfJw 1 1     0 0    192b    192b
yellow open sand__tenant3__entity_link__1572028131309      YsG9qiU3T_2xbi6LR7RDEw 1 1     0 0    192b    192b
yellow open sand__tenant3__transaction_link__1572028132836 na72xeI6TKaF9B1KGhjTjQ 1 1     0 0    192b    192b
yellow open sand__tenant4__alerts__1572029279879           RqqFlvpZTS-ATkFcTrOorA 1 1     0 0    192b    192b
yellow open sand__tenant4__document_link__1572028964883    Qphu_Z6NRnWMxXLgxWpNyg 1 1     0 0    192b    192b
yellow open sand__tenant4__entity_link__1572028967650      csqiVRybRs-7FhNLA9WuOQ 1 1     0 0    192b    192b
yellow open sand__tenant4__transaction_link__1572028969654 GjUkxH7HTiKH6ngj8McANw 1 1     0 0    192b    192b
green  open searchguard                                    SkfruwTpQF2C-tryB7yKFA 1 0     5 0  50.7kb  50.7kb

> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:9200
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 332
<
{
  "name" : "IsKD2CM",
  "cluster_name" : "xxx-elasticsearch",
  "cluster_uuid" : "nKsUS4SWTwalsDYqhwX56w",
  "version" : {
    "number" : "5.6.12",
    "build_hash" : "cfe3d9f",
    "build_date" : "2018-09-10T20:12:43.732Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}

Welcome to our community! :smiley:

5.X is long past EOL, please upgrade as a matter of urgency.

That would suggest this is a shell issue, not an Elasticsearch one. Have you tried wrapping the url in quotes?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.