Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.45 KB

File metadata and controls

59 lines (46 loc) · 1.45 KB

ec2backup Build Status Build Status

Amazon EC2 Backup Command Line Tool.

This command requires the IAM Role like:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateImage",
        "ec2:CreateSnapshot",
        "ec2:CreateTags",
        "ec2:DeleteSnapshot",
        "ec2:DeregisterImage",
        "ec2:DescribeImages",
        "ec2:DescribeInstances",
        "ec2:RegisterImage"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}

Usage

First, your instance(s) is required the tag that has the key named Backup-Generation with the number value of generations.

Backup myself

/path/to/ec2backup self

Backup all instanses(same region only)

/path/to/ec2backup all

Changelog

See CHANGELOG

Contributing

  1. Fork it ( https://github.com/marcy-go/ec2backup/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT License