Commit Graph

66 Commits

Author SHA1 Message Date
Colin Johnson
922fcab3a7 resolve issues with getting snapshot result 2014-11-02 18:31:39 +00:00
nathanblogs
5cfbbf827f Update ec2-automate-backup-awscli.sh
the snapshot id seems to be the 4th value.
2014-10-23 16:41:33 +08:00
cwturley
db06d1a59a Update ec2-automate-backup-awscli.sh
Tagging fails due to error "aws_ec2_create_tag_result='A client error (InvalidID) occurred when calling the CreateTags operation: The ID '\''2014-10-21T13:34:24.000Z'\'' is not valid'"

The command "aws ec2 create-snapshot --region $region --description $ec2_snapshot_description --volume-id $ebs_selected --output text" is giving less information, so the position of the ID has changed.
2014-10-21 09:50:24 -04:00
Pig Monkey
fed2ee644f Support FreeBSD date utility
Both FreeBSD and OSX use the POSIX date utility.
2014-10-17 14:21:25 -07:00
Colin Johnson
5cd4c97e59 Merge pull request #60 from awilliams/patch-1
Updates README.md escaping backtick in commands
2014-10-03 00:14:03 +00:00
Andrew Feng
766b3c6ad1 Update README.md
ec2-automate-backup-awscli.sh requires AWS Command Line Interface tools be installed
2014-09-17 13:01:24 +10:00
Adam Williams
3a310a0cbc Updates README.md escaping backtick in commands 2014-07-25 12:38:17 +02:00
kquinsland
45d2b10c7b Update ec2-automate-backup-awscli.sh
small typo fix
2014-07-24 12:13:57 -07:00
kquinsland
a6f83ccde4 Update ec2-automate-backup.sh
small typo fix.
2014-07-24 12:13:35 -07:00
kquinsland
e43c27bb99 Update ec2-automate-backup.sh
small typo fix
2014-07-24 12:13:08 -07:00
kquinsland
0a056941be Update ec2-automate-backup-awscli.sh
small typo fix.
2014-07-24 12:12:13 -07:00
Colin Johnson
d700c95dd4 Update ec2-automate-backup.sh 2014-06-30 06:31:50 +00:00
Colin Johnson
dc85dde572 Issue 59 and 49 - provide support for io1 type EBS 2014-06-27 14:04:13 +00:00
nathanblogs
3b8088d885 Update ec2-automate-backup-awscli.sh
Looks like the awscli tools added the encrypted flag to it's response, this breaks the cut on the outputs.
2014-06-18 16:41:50 +08:00
JeremJR
2546c0679e Update ec2ab - IAM User Required Permissions.json
Add missing ec2:DescribeSnapshots policy
2014-06-06 17:13:30 +02:00
Colin Johnson
8c43708518 add comments regarding support for CentOS 5 2014-04-21 01:37:59 +00:00
Colin Johnson
70362705d6 Google Bash Styleguide updates 2014-04-20 00:34:18 +00:00
Colin Johnson
3d8dad1568 installation instructions instruction fixup 2014-04-12 23:30:45 +00:00
Colin Johnson
ac2eaa7a4e provide installation instructions for the AWS CLI tool or EC2 API tool. 2014-04-12 23:28:09 +00:00
Colin Johnson
6342076b61 google bash style guide fixup 2014-04-12 23:12:52 +00:00
Colin Johnson
fb94bc5f39 aws-missing-tools/issues/52 - fixup of typo in documentation 2014-04-12 23:12:15 +00:00
Colin Johnson
9479e6390c move to unix time for ec2-automate-backup-awscli.sh 2014-04-12 23:06:26 +00:00
Colin Johnson
fd1655d044 Merge branch 'master' of github.com:colinbjohnson/aws-missing-tools 2014-04-12 21:21:56 +00:00
Colin Johnson
476b4da4c0 merging in epoch date usage - allows script to be run more than once a day 2014-04-12 21:21:28 +00:00
Josef Schneider
b3095dfa3e Get correct Snapshot ID with changed output format of "aws ec2 create-snapshot" 2014-04-01 11:52:21 +02:00
Colin Johnson
0257aedd3e moving ec2-automate-backup-awscli.sh to output --text values 2014-03-02 19:23:44 +00:00
Colin Johnson
eca59ba434 resolve issue with passed volume ids failing to parse, modify tag input to work with aws cli tool, use --output text to parse text instead of json when parsing output of aws cli commands 2014-03-02 18:47:30 +00:00
Elijah Buck
603069fdb9 add ec2-automate-backup-awscli to support aws cli tools 2014-02-19 09:45:57 -05:00
Jeff Vogt
a1db669e64 forgot to remove an unneeded line from the copypaste 2013-10-14 20:01:38 -07:00
Jeff Vogt
348e628c57 forgot to add the new flag in getopts 2013-10-14 19:58:36 -07:00
Jeff Vogt
6759a97c3d Added script flag -h to enable InitiatingHost as a tag to the snapshot 2013-10-14 19:51:06 -07:00
Colin Johnson
0dc954aad7 documentation updates 2013-10-11 04:26:24 +00:00
Dave Stern
b05ddd21c4 Region Copy: Updated README with new features 2013-04-10 15:20:11 -04:00
Dave Stern
27f88ef5a1 Region Copy: Modified prerequisite_check for conditional usage 2013-04-10 15:06:05 -04:00
Dave Stern
c63fc636e6 Region Copy: Mac cut doesn't have --output-delimiter, use tr instead 2013-04-10 14:51:55 -04:00
Dave Stern
09cee91c56 Region Copy: -g and -d options to tag and initiate region copies
-g tested with new backups using:

bash ec2-automate-backup.sh -v 'vol-8a1a43f6 vol-2a78d459' -g 'us-west-1 us-west-2' -n

-d tested with various options and repeated calls to test
idempotent copies:

bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-1 us-west-2'
bash ec2-automate-backup.sh -s regioncopy -d 'us-west-2'

etc.
2013-04-10 14:36:13 -04:00
Mike
917b3c8aa1 Update ec2ab - IAM User Required Permissions.json
Spelling mistake. Included invalid action; "Deletenapshot". Already correctly defined as "DeleteSnapshot"
2013-04-10 08:19:33 -05:00
Colin Johnson
c644a35d3c update of ec2-automate-backup test script and ensure user_tag functionality uses correct variable for date created. 2013-02-17 23:31:59 +00:00
Colin Johnson
ff06380942 updating to rename to user_tag from auto_tag and use bash builtin for region evaluation. Also updated README.txt for ec2-automate-backup. 2013-02-17 21:53:38 +00:00
Colin Johnson
006ae30307 adding ec2-automate-backup with snapshot retention periods of day, hour or minute. 2013-02-17 20:20:35 +00:00
Jon Higgs
ee2193fcbe make sure that that the region doesn't get overwritten. 2013-01-31 16:19:58 +01:00
Jon Higgs
6a000c3786 fix indent 2013-01-31 16:19:26 +01:00
Jon Higgs
3b637b617d fix indenting. 2013-01-31 16:14:51 +01:00
Jon Higgs
294c8a8220 use $EC2_REGION if has been set. 2013-01-28 17:18:28 +01:00
Colin Johnson
ee7890926d updating documentation for auto tags feature. 2013-01-27 15:51:25 +00:00
Alex Corley
b2c8d872d8 Added an -a switch for 'auto tagging'.
This currently only creates two tags, but they are immensely helpful
in automating restores of snapshots to volumes.

If this feature is liked, I can extend it to do more api work for
adding instance_id and other metadata to tags, but did not want
to initially increase dependencies or complexity.

anthroprose@gmail.com
2013-01-16 12:34:31 -06:00
Colin Johnson
979fb3c431 updating spelling error in comment. 2012-12-30 06:50:08 +00:00
Colin Johnson
e23064fe44 Update of second bullet point in the ec2-automate-backup introduction. -k parameter shows 31 days but the description of the cron command says 14 days. 2012-12-10 15:35:50 +00:00
Colin Johnson
76444ca1f9 formating changes for README.md files. 2012-12-09 17:01:16 +00:00
Colin Johnson
656654dc52 moving all files README.txt to README.md for rendering in github. 2012-12-09 02:02:08 +00:00