Software Development Kit (SDK) and API Discussions

Question about naming convention of snapshot

shypervisor
views-count 671 Views

Question about naming convention of snapshot. (available character set)

For example, following name is  available?

 

‘‘‘

test__2020-12-21T23:47:20.594067+00:00

‘‘‘

 

3 REPLIES 3

Re: Question about naming convention of snapshot

NetApp_SR
views-count 672 Views

You did not provide details about your environment.  Depending on the environment the plus (+) may be used but as a best practice I recommend  limiting names to ASCII alphanumeric characters, _ (underscore), - (hyphen),  and . (dot).

Re: Question about naming convention of snapshot

shypervisor
views-count 672 Views

Thanks 

 

I want to use the name on the environment of AI Control Plane environment (TR-4798).

So in my guess, it depends on Python SDK(netapp_ontap) and NetApp Trident.

 

The ":" colon is available?

 

For example, Airflow Run ID can use as snapshot name?

https://towardsdatascience.com/apache-airflow-tips-and-best-practices-ff64ce92ef8

Re: Question about naming convention of snapshot

NetApp_SR
views-count 672 Views

It is quick and easy to recover data from a Snapshot. Snapshots should not be considered a disaster recovery method since Snapshots live on the volume. For disaster recovery we need to have data in another site. Most of the time data is recovered from Snapshots using the same application that created the Snapshot. To address your original question yes you can name a Snapshot with the name “test__2020-12-21T23:47:20.594067+00:00”. NFS can mount a Snapshot with a colon in the name it will cause issues in Windows hosts. For the greatest compatibility with other utilities and ease of use I would stick with ASCII alphanumeric characters, _ (underscore), - (hyphen),  and . (dot). You will also not have deal with all the delimiters in your Python program.

View solution in original post

G2 Review Banner
All Community Forums
Public