/_snapshot endpoint API documentation

(Simone Cafiero) #1

Hi guys,
is there a complete documentation of the following API endpoint:

  • /_snapshot

I would like to know if it's possible to edit backup metadata names (snap-CUSTOM_NAME or meta-CUSTOM_NAME instead of having a random String where CUSTOM_NAME is) and eventually how to do that through any API parameter. So any documentation of that endpoint would be very helpful.

(David Pilato) #2

The question is why you would like to do that?
The files should not be used by anything else than snapshot/restore api.

(Aaron Mildenstein) #3

The short answer is no. You should only be interacting with the files in your snapshot repository through the Elasticsearch Snapshot/Restore API. You should never edit or manipulate these files directly.

(Aaron Mildenstein) #4

Hahaha, @dadoonet! I swear your response wasn't there when I clicked "reply."

(Simone Cafiero) #5

Hi guys,
ok it looks like you're discouraging the practice of appending a meaningful name to snap-.dat and meta-.dat files.

Anyway in different scenarios I saw that files renamed when using previous versions of ES in both FS and s3 repos based approach. Maybe it was considered as a way to allow a quick distinction when browsing them:

Having these:

And then:

Anyway, thanks for clarifying.


(system) #6

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