Page 1 of 2

EBS snapshot tagging

Posted: Fri Jun 24, 2016 5:37 pm
by admin
I just installed your EBS backup program. I set the Tag to be $DOW-$TIME-$VOLID, but it doesn’t show up in the description or name of the snapshot.
Am I doing something wrong?
Thanks,

Carlton

Re: EBS snapshot tagging

Posted: Fri Jun 24, 2016 5:41 pm
by admin
If you want to set the name of a snapshot please use:

Name=$DOW-$TIME-$VOLID

Tag keys and values are case-sensitive. You can find more Information here:

http://www.automaticloud.net/backup-ec2-instance/

Stephan

Re: EBS snapshot tagging

Posted: Mon Jun 27, 2016 4:28 pm
by cwhitmore
I used the exact syntax you suggested, but now I'm getting the following error:

Exception: Couldn't store job: Unable to store Job: 'AWSJob.AWSCopySnapshotJob201606270916167638', because one already exists with this identification.
Job Type: Copy EC2 Snapshot
Job Name:
Job ID: AWSCopySnapshotJob201606270915165957
Host: CLOUDDC
Timestamp: 6/27/2016 9:16:16 AM

Re: EBS snapshot tagging

Posted: Mon Jun 27, 2016 5:45 pm
by admin
The error message is generated during the copy of the snapshot to another region. Please deactivate this option first and check if the snapshot has been created and tagged correctly.

Then activate the copy-to-region option again and send the logfile of the background service by mail. You can find it in the help menu.

Stephan

Re: EBS snapshot tagging

Posted: Mon Jun 27, 2016 7:01 pm
by cwhitmore
Stephan,
The snapshots are created, but the tag for Name isn't getting created for the snapshop. The Name field is blank.

Re: EBS snapshot tagging

Posted: Tue Jun 28, 2016 11:36 am
by admin
My original post was incorrect. The correct tag string is "Name=$DOW-$TIME-$VOLID"

Stephan

Re: EBS snapshot tagging

Posted: Tue Jun 28, 2016 3:39 pm
by cwhitmore
You were correct. I didn't notice that I had NAME in all caps. Once I changed it the backup started to work.
How that I have the Name field getting populated I'd like to set the Description field so it has the instance name..

I tried using Name=$VOLID;Description=$INSTANCE

but it didn't work. I check here http://www.automaticloud.net/backup-ec2-instance/ but didn't see a way to set Description.
Can you send me the correct syntax?

Re: EBS snapshot tagging

Posted: Tue Jun 28, 2016 10:29 pm
by admin
The description field is not a tag like the others. It can not be set.

Stephan

Re: EBS snapshot tagging

Posted: Wed Jun 29, 2016 2:59 pm
by cwhitmore
So far so good. You're program works.
Sure would be nice if we could add a tag so I knew the instance name for each volume snapshot and a way to add info to the description field.

Re: EBS snapshot tagging

Posted: Thu Jun 30, 2016 12:14 pm
by admin
In your case the job is backing up only one host and you can put the host name as a fixed string in the tag:

Name=MyHostName: $DOW-$TIME-$VOLID

You don't need a macro in this case.

I will put your request to set the description on the to-do-list.

Stephan