Skip to content

kpchaitanya/amibackup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##amibackup: create cross-region AWS AMI backups

Usage:
  amibackup [options] [-p <window>]... <instance_name_tag>
  amibackup -h --help
  amibackup --version

Options:
  -s, --source=<region>     AWS region of running instance [default: us-east-1].
  -d, --dest=<region>       AWS region to store backup AMI [default: us-west-1].
  -t, --timeout=<secs>      Timeout waiting for AMI creation [default: 300].
  -p, --purge=<window>      Comma-separated list of purge windows - see below for details.
  -n, --nagios              Run like a Nagios check.
  -o, --purgeonly           Purge old AMIs without creating new ones.
  --debug                   Enable debugging output.
  --version                 Show version.
  -h, --help                Show this screen.

Purge windows:
  Delete old AMIs (and associated snapshots) based on the Purge windows you define.
  By default, no AMIs are purged.  AMIs within Purge Windows are purged.
  Format is: PURGE_INTERVAL:PURGE_START:PURGE_END
  Each is a time interval (second/minute/hour/day), such as: 1s:4m:9d
  Where:
    PURGE_INTERVAL    time interval in which to keep one backup
    PURGE_START       start purging (ago)
    PURGE_END         end purging (ago)
  Sample purge schedule:
  -p 1d:4d:30d -p 7d:30d:90d -p 30d:90d:180d   Keep all for past 4 days, 1/day for past 30 days, 1/week for past 90 days, 1/mo forever.

About

Easily create cross-region AWS AMI backups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%