Dhiraj
Dhiraj

Reputation: 3696

Workaround for soft delete not available in ADLS Gen2

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).

Upvotes: 2

Views: 5941

Answers (2)

Ivan Glasenberg
Ivan Glasenberg

Reputation: 29995

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.

Upvotes: 2

Related Questions