Sign inSign up

iainmckay/etcd-backup

By iainmckay

•Updated about 11 years ago

Container that backs up etcd configuration to S3

Image
1

100K+

iainmckay/etcd-backup repository overview

⁠etcd-backup

Container that backs up etcd configuration to S3. The container overwrites the same S3 object every time it is run, it is recommended you turn versioning on to retain access to previous copies.

There is an existing image available on the public registry at iainmckay/etcd-backup⁠.

⁠Backing up etcd

To backup etcd you simply run:

$ docker run -e AWS_ACCESS_KEY_ID="key" -e AWS_SECRET_ACCESS_KEY="secret" -e AWS_DEFAULT_REGION="eu-west-1" iainmckay/etcd-backup backup

⁠Restoring etcd

To restore an existing backup you simply run:

$ docker run -e AWS_ACCESS_KEY_ID="key" -e AWS_SECRET_ACCESS_KEY="secret" -e AWS_DEFAULT_REGION="eu-west-1" iainmckay/etcd-backup restore

⁠Configuration

The container can be customized with these environment variables:

NameDefault ValueDescription
AWS_ACCESS_KEY_IDblankYour AWS access key with access to the desired bucket
AWS_SECRET_ACCESS_KEYblankYour AWS secret access key with access to the desired bucket
AWS_DEFAULT_REGIONblankThe AWS region your bucket is in
ETCD_IP172.17.42.1Address your etcd peer is accessible at
ETCD_PORT4001The port your etcd peer is accessible on
S3_BUCKETblankThe bucket to write the backup to
S3_OBJECTetcd.jsonThe object to write

Tag summary

Content type

Image

Digest

sha256:65336ba36…

Size

101.7 MB

Last updated

about 11 years ago

docker pull iainmckay/etcd-backup