Clone a copy of the main ebs-snapshot from git repo by running:
$ git clone git://github.com/sachingade20/ebs_snapshot.git
And then execute:
$ bundle
Within /config you will find several sample configuration files ending in .sample. Simply make copies of these files without the .sample suffix, such as config.yml, and adjust as needed.
Update config/config.yml with the configuration required to find out the volumes for snapshot.
Your instance should be IAM role enabled to resolved the credentials using Amazon instance metadata API.
Create or Delete ebs volume snapshots. Within /bin you will find several clients written for processing snapshot. Please refer examples/*.sample for sender request structure.
Rabbitmq Client - Rabbitmq consumer client which triggers snapshot using messages.
- Message Queue : "ebs.snapshot"
- Message Body
- "create" : creates snapshot using configs from config/config.yml.
- "delete" : deletes snapshot using configs from config/config.yml.
Ruby Client - Creates and deletes snapshot using configs from config/config.yml.
See rake -T aws:ebs:snapshot
for available rake tasks.