Online backup and on-demand information restore in Azure Cosmos DB

APPLIES TO: SQL API Cassandra API Gremlin API Table API Azure Cosmos DB API for MongoDB

Azure Cosmos DB automatically takes backups of your information at regular intervals. The automatic backups are taken without affecting the functioning or availability of the database operations. All the backups are stored separately in a storage service. The automated backups are helpful in scenarios when you accidentally delete or update your Azure Cosmos account, database, or container and later require the data recovery. Azure Cosmos DB backups are encrypted with Microsoft managed service keys. These backups are transferred over a secure non-public network. Which means, fill-in information remains encrypted while transferred over the wire and at rest. Backups of an business relationship in a given region are uploaded to storage accounts in the same region.

Backup modes

There are two backup modes:

  • Continuous backup mode – This mode allows you lot to practice restore to any point of time within the terminal 30 days. You lot tin choose this mode while creating the Azure Creation DB account. To larn more, see the Introduction to Continuous fill-in way, provision continuous fill-in using Azure portal, PowerShell, CLI, or Azure Resource Manager articles. You lot can also migrate the accounts from periodic to continuous mode.

  • Periodic backup way - This mode is the default backup mode for all existing accounts. In this way, backup is taken at a periodic interval and the data is restored by creating a request with the support squad. In this fashion, y'all configure a backup interval and retention for your account. The maximum retentiveness menstruation extends to a calendar month. The minimum backup interval tin can be 1 hour. To larn more, see the Periodic backup mode article.

    Note

    If you configure a new account with continuous backup, you tin do self-service restore via Azure portal, PowerShell, or CLI. If your account is configured in continuous mode, you lot tin't switch information technology dorsum to periodic mode.

For Azure Synapse Link enabled accounts, analytical store data isn't included in the backups and restores. When Synapse Link is enabled, Azure Cosmos DB will continue to automatically take backups of your data in the transactional store at a scheduled backup interval. Automatic backup and restore of your data in the analytical store is not supported at this fourth dimension.

Ofttimes asked questions

Can I restore from an account A in subscription S1 to business relationship B in a subscription S2?

No. You can just restore between accounts inside the same subscription.

Can I restore into an account that has fewer partitions or depression provisioned throughput than the source account?

No. You tin can't restore into an account with lower RU/s or fewer partitions.

Yeah. Nonetheless, analytical store data isn't included in backups and restores. When Synapse Link is enabled on a database business relationship, Azure Cosmos DB will continue to automatically have backups of your information in the transactional store at scheduled backup interval, as always.

Is periodic fill-in manner supported for analytical shop enabled containers?

Yes, but merely for the regular transactional information. Backup and restore of your data in the analytical store is not supported at this fourth dimension.

Next steps

Side by side you tin can learn about how to configure and manage periodic and continuous backup modes for your account:

  • Configure and manage periodic backup policy.
  • What is continuous fill-in mode?
  • Provision continuous backup using Azure portal, PowerShell, CLI, or Azure Resources Director.
  • Restore continuous fill-in account using Azure portal, PowerShell, CLI, or Azure Resources Director.
  • Migrate to an account from periodic fill-in to continuous backup.
  • Manage permissions required to restore data with continuous backup mode.
  • Resources model of continuous backup mode