Skip to content

Automatic snapshot naming #7939

@grantr

Description

@grantr

It would be useful if Elasticsearch could generate automatic snapshot names. This would be a POST to the repository instead of a PUT to a snapshot name.

curl -XPOST localhost:9200/_snapshot/my-repository

The name could be generated by incrementing a number (1, 2, 3, etc), getting the current timestamp, or generating a flake id.

To organize snapshots in a repository, the POST action could accept a prefix parameter.

curl -XPOST localhost:9200/_snapshot/my-repository?prefix=my-index -d '{"indices":"my-index"}'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions