Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "label" information to images for categorization #201

Open
blitzmann opened this issue May 6, 2022 · 0 comments
Open

Add "label" information to images for categorization #201

blitzmann opened this issue May 6, 2022 · 0 comments

Comments

@blitzmann
Copy link
Contributor

When creating an image, I think it would be useful if you could create it using a tag or a label that can label that image as being part of a certain process (or any other metadata you want to store about the image).

For example, if we have a scheduled task that images MyDatabase from the production server weekly. We use Remove-DcnImage -Unused -Keep 4 -Database MyDatabase to remove any images that are older than 4 weeks and aren't being used. These weekly ones are the ones we use for general features

However, I would also like to create a Daily images at midnight of the same database that would only be kept around if no clones are active for it. This is in case we need more recent data for dev work / troubleshooting.

For that one, I would run Remove-DcnImage -Unused -Database MyDatabase

The problem is that there is nothing to differentiate the weekly images from the daily images, so running the second Remove- command will remove weekly ones as well.

If we had labels that were issues when creating the weekly / daily images, I would be able to have the remove commands clean up backed on those labels

Remove-DcnImage -Unused -Database MyDatabase -Label daily
Remove-DcnImage -Unused -Keep 4 -Database MyDatabase -Label Weekly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant