No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mock
vendor
.gitignore
CHANGELOG.md
Gopkg.lock
Gopkg.toml
LICENSE
README.md
aws.go
aws_test.go
backup.go
backup_test.go
cli.go
mail.go
main.go
version.go
wercker.yml

README.md

go-create-image-backup

wercker status

backup tool with AWS Amazon machine image(AMI) written by Go.

Features

  • Create backup for Amazon EC2 instance by Amazon machine image
  • Manage backup generations per logical group(service tag based).
  • Notify error by email
    • You should be careful when send email from Amazon EC2 instance, See also AWS Documentation

Usages

Usage of go-create-image-backup:
  -backup-generation int
    	number of backup generation (default 10)
  -g int
    	number of backup generation(Short) (default 10)
  -instance-id string
    	instance id
  -i string
    	instance id(Short)
  -region string
    	region
  -r string
    	region(Short)
  -service-tag string
    	value of Service tag
  -s string
    	value of Service tag(Short)
  -mail-from string
        from-address of email notification
  -f string
        from-address of email notification(Short)
  -mail-to string
        to-address of email notification
  -t string
        to-address of email notification(Short)
  -mail-server
      mail server address (default localhost)
  -m string
      mail server address (default localhost)(Short)
  -port int
      mail server's port (default 25)
  -p int
      mail server's port (default 25)(Short)      
  -version
    	print version information
  -v	print version information(Short)

Example

Create new machine image ami-1234567890abcdef0 and deregister machine image ami-1234567890abcdef1, ami-1234567890abcdef2

$ go-create-image-backup -service-tag daily -backup-generation 3
create image: ami-1234567890abcdef0
deregister images: ami-1234567890abcdef1

Author

Takatada Yoshima

License

Apache License 2.0