backup tool with AWS Amazon machine image(AMI) written by Go.
- 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
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)
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