Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waterlink/es-snapshot
This is a small script to make an elasticsearch snapshot. Tested with TDD in Bash in a very esoteric way.
https://github.com/waterlink/es-snapshot
Last synced: 30 days ago
JSON representation
This is a small script to make an elasticsearch snapshot. Tested with TDD in Bash in a very esoteric way.
- Host: GitHub
- URL: https://github.com/waterlink/es-snapshot
- Owner: waterlink
- License: mit
- Created: 2016-01-26T00:03:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T00:03:17.000Z (almost 9 years ago)
- Last Synced: 2024-10-16T07:16:25.929Z (3 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# es-snapshot
This is a small script to make an elasticsearch snapshot.
First it creates/updates a snapshot repository. Next it triggers a snapshot.
Script is controlled by following environment variables:
- `ELASTICSEARCH_SERVICE_HOST` - hostname/domain/ip-address to access elastic
search API. (defaults to `localhost`).
- `ELASTICSEARCH_SERVICE_PORT` - port to access elastic search API. (defaults
to `9200`).
- `ELASTICSEARCH_SNAPSHOT_REPOSITORY` - name of the snapshot repository.
(defaults to `backups`).
- `ELASTICSEARCH_SNAPSHOT_TYPE` - type of the snapshot. (supported: `fs`,
`s3`). (default: `fs`).
- `ELASTICSEARCH_SNAPSHOT_FS_LOCATION` - location of the snapshot. (default:
`/var/lib/es/snapshots/$ELASTICSEARCH_SNAPSHOT_REPOSITORY`).
- `ELASTICSEARCH_SNAPSHOT_S3_BUCKET` - AWS S3 bucket name. (default:
`es-snapshots-$ELASTICSEARCH_SNAPSHOT_REPOSITORY`).Script itself is available [here](/es-snapshot.sh).
Usage is straightforward: `export ...` aforementioned environment variables and
run the script as `./es-snapshot.sh`.## License
MIT License. [Read here](/LICENSE).