Improve snapshot API to allow snapshot with same name overwrite (quick win!)

September 3, 2016 191 views
API Server Optimization Backups Billing CentOS Ubuntu CoreOS Arch Linux

PLease add a new option to the snapshot API to overwrite a snapshot with an already existing name.

We make 1 snapshot using the following schedule: every 1 night, 1 day, 1 month

Using the API and giving it a name myself "1night", "1week", "1month" I was expecting that if I created a second snapshot using the SAME name that it would overwrite the existing snapshot with the same name (just like files: only 1 instance of a filename)

But! this is not the case.

First: I think this is a bug: a name should be unique. I reading the documentation everywhere I get the idea that it DOES overwrite an existing snapshot with the same name.

Second: Anyways a small change is needed to the snapshot API with an optional option that if when set to YES first finds an existing snapshot with the same name and replaces the old snapshot with the new one

This is really a quick win I think and would save us already some Terabytes of data (because now we have lists and lists of snapshots all with the same name)

please mark as urgent!

1 Answer

Thanks for the suggestion. Suggestions from our users play a major role in the features we develop and changes we make. I strongly recommend adding this suggestion to our UserVoice page here so others can vote on it and so it is added to suggestions our product team reviews daily.

I will say that our current implementation while not ideal for your use case currently provides the best solution to ensure against accidental data loss since your saved snapshot will never be deleted unless you specifically specify it should be.

Have another answer? Share your knowledge.