This container can be used to easily manage Elasticsearch snapshots.
984
This container can be used to easily manage Elasticsearch snapshots.
ELASTICSEARCH_URL (default: http://elasticsearch-9200.service.consul:9200)
ESS_ABORT_IF_EMPTY (default: true)
ESS_CREATE_IF_MISSING (defaut: false)
true and the snapshot repository does not exist, then attempt to create it. See the Repository Auto-Creation section for more information.ESS_MAX_SNAPSHOTS (defaut: 0)
0 to disable entirely.scheduled- prefix will be counted and deleted. All other snapshots will not count against this limit.ESS_REPO_NAME required
ESS_WAIT_FOR_COMPLETION (default: true)
This is best used with a timer and service combination in your cluster.
# elasticsearch-snapshot.timer
[Unit]
Description=Elasticsearch Scheduled Snapshot Timer
[Timer]
OnCalendar=hourly
Persistent=false
[Install]
WantedBy=multi-user.target
[X-Fleet]
Conflicts=%p.timer
MachineOf=%p.service
# elasticsearch-snapshot.service
[Unit]
Description=Elasticsearch Scheduled Snapshot
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
Type=simple
ExecStartPre=-/usr/bin/docker pull webdestroya/elasticsearch-snapshot
ExecStart=/usr/bin/docker run --rm=true \
-e ELASTICSEARCH_URL=http://elasticsearch-9200.service.consul:9200 \
-e ESS_REPO_NAME=s3_repository \
-e ESS_MAX_SNAPSHOTS=100 \
-e ESS_WAIT_FOR_COMPLETION=true \
scieloorg/elasticsearch-snapshot
[Install]
WantedBy=multi-user.target
[X-Fleet]
Conflicts=%p.service
Content type
Image
Digest
Size
4.7 MB
Last updated
over 7 years ago
docker pull scieloorg/elasticsearch-snapshot