Skip to content

Retention tasks fail on backups #2

@Just-Insane

Description

@Just-Insane

When running the script (well, a slightly modified version), when the retention tasks run to delete older than N snapshots, if the Nth snapshot is actually a backup it will fail with the following error:

"Image Backups cannot be deleted"

This leads me to believe that it is attempting to delete a backup, and not a snapshot.

It seems like updating the script to capture the image type via doctl compute image list, then skipping any backup images would be sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions