Skip to content

Filtering resources (with --tag) with --remove-only option #7

@FrancescoKa

Description

@FrancescoKa

Hi, if I have understood right the --tag (or --reverse) applies only when I want to add snapshots.
I think it would be useful using --tag when you want to purge old snapshots.
In the case that you take the snapshot with a custom script (because, for example, you want a snapshot in a consistent state, freezing someway the application ) you could then use a command like this

backup-monkey-master$ backup-monkey --region xxx --max-snapshots-per-volume 14 --remove-only --tags MyTag:MyVal

To keep at most 14 snapshots on the snapshots given tag

Regards.
F

PS In any case, the manual says:
--tags TAGS [TAGS ...]
But the following description says --tag :
Only snapshot instances that match passed in tags.
E.g. --tag Name:foo will snapshot all instances with a
tag Name and value is foo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions