Can Continuous Backup in Cosmos DB Restore Items Expired by Time to Live (TTL)?

Khushaal Kurswani 40 Reputation points Microsoft Vendor
2024-11-13T19:59:17.15+00:00

Can Cosmos DB's continuous backup feature restore items deleted by Time to Live expiration

In the periodic backup documentation, it clearly states that documents that were deleted because of expired TTL will not be restored. But no such limitation is stated in the continuous backup documentation.

So, I just wanted to confirm if it is possible to restore documents deleted by Time to Live using continuous backup.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,681 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 15,766 Reputation points
    2024-11-18T07:54:30.37+00:00

    Hi @Khushaal Kurswani ,

    Below is the reply from the internal team:

    In Continuous Backup, the default restore process restores all the properties of a container including its TTL configuration by default, this can result in deletion of data if restore is done without way to disable the TTL. To prevent the deletion please pass parameter to disable TTL in PowerShell (-DisableTtl $true) or cli (--disable-ttl True) while doing the restore.

    Hope this helps.

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.