Snapshots do not list when restoring a backup

I need to restore a backup of elasticsearch on another server, however snapshots do not appear on the system.

My folder backup

    root@ixcgWfFZinUSKI:/var/lib/elasticsearch_backup# ls -lh
    total 232K
    -rw-r--r-- 1 elasticsearch elasticsearch    8 Oct 27 09:53 index.latest
    drwxr-xr-x 4 elasticsearch elasticsearch 4.0K Oct 21 04:06 indices
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 23 05:26 meta-DUdDzGKzQ1q5IN8PhbQNbQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 27 04:04 meta-Glfr4Aj4QHqBkNEMrb5HcQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 26 05:24 meta-JRTlaCryTiag9RTqofsVeg.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 22 04:06 meta-KkAt7gG_TiGnWf3gVLj7-g.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 25 04:06 meta-PBsBnZ7FQ2-I1FplqeTx4w.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 21 05:26 meta-RKRK6AVjTw-ZW2iNi8ezuw.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 21 04:10 meta-R_gU94TTSwSasBNOUqVINQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 25 05:24 meta-S5Hx59RQR9CYzh1F4DU7uQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 22 05:26 meta-Yr6VRISfSue-P0iISjNzuA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 24 04:07 meta-bSe0nrkhTBKrJVnj2XXjGA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 26 04:04 meta-pwjLldhPTD-A18Z0c_0JqA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 23 04:06 meta-yCijlZZZQIi8ScbXnRhMBw.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 27 05:24 meta-yJvuGrrVQteticDATuSypQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch 9.9K Oct 24 05:54 meta-yqBcKDnyQ0ey-rQOEzynbQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  282 Oct 23 05:26 snap-DUdDzGKzQ1q5IN8PhbQNbQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  280 Oct 27 04:04 snap-Glfr4Aj4QHqBkNEMrb5HcQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  276 Oct 26 05:24 snap-JRTlaCryTiag9RTqofsVeg.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  278 Oct 22 04:06 snap-KkAt7gG_TiGnWf3gVLj7-g.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  281 Oct 25 04:05 snap-PBsBnZ7FQ2-I1FplqeTx4w.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  281 Oct 21 05:26 snap-RKRK6AVjTw-ZW2iNi8ezuw.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  280 Oct 21 04:10 snap-R_gU94TTSwSasBNOUqVINQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  279 Oct 25 05:24 snap-S5Hx59RQR9CYzh1F4DU7uQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  278 Oct 22 05:26 snap-Yr6VRISfSue-P0iISjNzuA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  276 Oct 24 04:07 snap-bSe0nrkhTBKrJVnj2XXjGA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  280 Oct 26 04:04 snap-pwjLldhPTD-A18Z0c_0JqA.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  281 Oct 23 04:06 snap-yCijlZZZQIi8ScbXnRhMBw.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  278 Oct 27 05:24 snap-yJvuGrrVQteticDATuSypQ.dat
    -rw-r--r-- 1 elasticsearch elasticsearch  283 Oct 24 05:54 snap-yqBcKDnyQ0ey-rQOEzynbQ.dat

My config backup

` curl -X PUT http://myuser:mypass@127.0.0.1:9200/_snapshot/backup_2 -H 'Content-Type: application/json' -d '{"type": "fs", "settings": { "location": "/var/lib/elasticsearch_backup/", "compress": true }}'`

Do not list snapshots

root@ixcgWfFZinUSKI:/var/lib/elasticsearch_backup# curl -s -X GET http://myuser:mypass@127.0.0.1:9200/_snapshot/backup_2/_all | jq
{
  "snapshots": []
}

root@ixcgWfFZinUSKI:/var/lib/elasticsearch_backup# curl -u myuser -k -H 'Content-Type: application/json' -X GET http://127.0.0.1:9200/_cat/repositories
Enter host password for user 'myuser':
backup_2 fs

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