EBS snapshot tagging

Topics related to Version 3 of AutomatiCloud
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

EBS snapshot tagging

Post 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
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

Re: EBS snapshot tagging

Post 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
cwhitmore
Posts: 4
Joined: Mon Jun 27, 2016 4:25 pm

Re: EBS snapshot tagging

Post 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
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

Re: EBS snapshot tagging

Post 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
cwhitmore
Posts: 4
Joined: Mon Jun 27, 2016 4:25 pm

Re: EBS snapshot tagging

Post by cwhitmore »

Stephan,
The snapshots are created, but the tag for Name isn't getting created for the snapshop. The Name field is blank.
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

Re: EBS snapshot tagging

Post by admin »

My original post was incorrect. The correct tag string is "Name=$DOW-$TIME-$VOLID"

Stephan
cwhitmore
Posts: 4
Joined: Mon Jun 27, 2016 4:25 pm

Re: EBS snapshot tagging

Post 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?
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

Re: EBS snapshot tagging

Post by admin »

The description field is not a tag like the others. It can not be set.

Stephan
cwhitmore
Posts: 4
Joined: Mon Jun 27, 2016 4:25 pm

Re: EBS snapshot tagging

Post 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.
admin
Site Admin
Posts: 223
Joined: Tue Nov 17, 2015 8:48 pm

Re: EBS snapshot tagging

Post 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
Post Reply