Git Product home page Git Product logo

Comments (4)

kkumler avatar kkumler commented on June 8, 2024

@joech4n The documentation is slightly off on that. Try it with -t "Backup-Daily,Values=true"

from aws-missing-tools.

joech4n avatar joech4n commented on June 8, 2024

Thanks for checking this out! I'm still seeing the same behavior with your suggested tag:

> aws ec2 describe-volumes --volume-ids vol-4d98fe5c
{
    "Volumes": [
        {
            "AvailabilityZone": "us-west-2a",
            "Attachments": [
                {
                    "AttachTime": "2015-01-24T16:09:46.000Z",
                    "InstanceId": "i-ee7052e4",
                    "VolumeId": "vol-4d98fe5c",
                    "State": "attached",
                    "DeleteOnTermination": false,
                    "Device": "xvdb"
                }
            ],
            "Tags": [
                {
                    "Value": "cp",
                    "Key": "Name"
                },
                {
                    "Value": "true",
                    "Key": "Backup-Daily"
                }
            ],
            "Encrypted": false,
            "VolumeType": "gp2",
            "VolumeId": "vol-4d98fe5c",
            "State": "in-use",
            "Iops": 1500,
            "SnapshotId": null,
            "CreateTime": "2015-01-24T16:09:46.731Z",
            "Size": 500
        }
    ]
}

> ec2-automate-backup-awscli.sh -r us-west-2 -k 30 -s tag -t "Backup-Daily=true,Values=true" -h
Snapshots taken by ec2-automate-backup-awscli.sh will be eligible for purging after the following date (the purge after date given in seconds from epoch): 1427296520.

from aws-missing-tools.

kkumler avatar kkumler commented on June 8, 2024

It's just dropping the tag field through to the aws call, which has the format --filters Name=tag:<tagname>,Values=<acceptable values>
so try:
ec2-automate-backup-awscli.sh -r us-west-2 -k 30 -s tag -t "Backup-Daily,Values=true" -h

from aws-missing-tools.

joech4n avatar joech4n commented on June 8, 2024

That worked! Thank you! 👏

from aws-missing-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.