As of now the blob feature 'soft delete' is not yet supported for ADLS Gen2 (hierarchical namespaces turned on). Soft delete is really good for accidental deletes either from human error or programmatic deletion. Considering soft delete is not yet supported for ADLS Gen2, is there any easy workaround for this? We want to really use ADLS Gen2 for its hierarchical namespace feature, but then don't want to lose our data if unintended deletes take place -- similar to soft delete we wan to retain data post its deletion for a few days (e.g. 15 days).
1 Answers
2
votes
There is no a easy way to mimic the soft-delete feature in ADLS Gen2.
Here are some suggestions you can take a look.
1.Back up all the files to another ADLS Gen2 account. For example, you can create a blob trigger azure function, use blob storage output binding.
2.Use some tools like azcopy, periodically copy the files to local.
So when if it was deleted accidentally, just copy it back.