Example of Elasticsearch setup with snapshots stored in Spaces

August 8, 2019 469 views
Debian Elasticsearch

Hi there,
I’m looking for examples of how I can use the Spaces to store snapshots for a set of Elasticsearch clusters I’m gonna deploy in DigitalOcean during the next months. Do you have any snippet with an example of the setup I need?

Thank you!

1 Answer

Hey @lcanas

Thanks for contacting DigitalOcean!

Spaces are s3 compatible so you can sync the snapshots of data directly to spaces using s3cmd.

https://www.digitalocean.com/docs/spaces/resources/s3cmd-usage/#put-all-files-in-your-current-directory

This can be a bit involved but you can start by uploading a single snapshot and then configuring a script that checks for changes in the Snapshot directory(on a certain interval) and initiates uploads for newer snapshots.

Please enlighten me if I am misunderstanding your requirement.

Regards,
Prakash Jha
Developer Support Engineer II - DigitalOcean

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!