项目作者: grid-x

项目描述 :
Tooling for automatically creating snapshots for AWS EBS Volumes and AWS Lightsail instances
高级语言: Go
项目地址: git://github.com/grid-x/aws-auto-snapshot.git
创建时间: 2017-10-15T17:57:47Z
项目社区:https://github.com/grid-x/aws-auto-snapshot

开源协议:MIT License

下载


aws-auto-snapshot

NOTE: As of October 2019 AWS Lightsail supports automatic snapshots with a seven
day retention period. It is recommended to use the lightsail version instead of
this tool if possible. Details can be found
here.

aws-auto-snapshot is a set of tools that help to create snapshots for

  • EBS volumes
  • Lightsail instances

The so-called snapshotter lets you create those snapshots. By default it will
snapshot all running lightsail instances in the account and all EBS volumes that
have a special backup tag.

It can be configured how long snapshots are stored, i.e. when the tool will prune
them.

Generally, you will want to run the tool on a regular basis, e.g. once a day, via,
for example, a cron job. At gridX we run it as a cronjob in our Kubernetes cluster.

Metadata about each snapshot can be stored in a datastore. Currently, only DynamoDB
is supported as datastore.

If metadata was written to a datastore, this can be used to automatically restore
the latest snapshot of a resource. This is currently only supported for the EBS
volumes, though.

Develop

  1. # To build
  2. # This will create a file called bin/snapshotter which is the above mentioned
  3. # snapshotting tool
  4. make
  5. # To lint
  6. make lint
  7. # To test
  8. make test