From 5cfbbf827fcaff4f0739ffcef4952bd029da7534 Mon Sep 17 00:00:00 2001 From: nathanblogs Date: Thu, 23 Oct 2014 16:41:33 +0800 Subject: [PATCH] Update ec2-automate-backup-awscli.sh the snapshot id seems to be the 4th value. --- ec2-automate-backup/ec2-automate-backup-awscli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ec2-automate-backup/ec2-automate-backup-awscli.sh b/ec2-automate-backup/ec2-automate-backup-awscli.sh index 907c777..41c6252 100755 --- a/ec2-automate-backup/ec2-automate-backup-awscli.sh +++ b/ec2-automate-backup/ec2-automate-backup-awscli.sh @@ -208,7 +208,7 @@ for ebs_selected in $ebs_backup_list; do if [[ $? != 0 ]]; then echo -e "An error occurred when running ec2-create-snapshot. The error returned is below:\n$ec2_create_snapshot_result" 1>&2 ; exit 70 else - ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 3) + ec2_snapshot_resource_id=$(echo "$ec2_create_snapshot_result" | cut -f 4) fi create_EBS_Snapshot_Tags done