{"id":6143,"date":"2023-05-23T08:00:14","date_gmt":"2023-05-23T15:00:14","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=6143"},"modified":"2023-05-23T13:14:14","modified_gmt":"2023-05-23T20:14:14","slug":"do-more-with-granular-control-in-new-backup-features-for-azure-cosmos-db-at-low-cost","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/do-more-with-granular-control-in-new-backup-features-for-azure-cosmos-db-at-low-cost\/","title":{"rendered":"Do more with granular control in new backup features for Azure Cosmos DB at low cost"},"content":{"rendered":"<p><i><span data-contrast=\"none\">This blog post and the features are brought to you by Vinh Trinh, Mayank Katwal, Amit Singh, Kshittiz Kumar, Vineet Kumar, Dinesh Kumar, Chuck Skelton, Sidney Andrews, Joe Dennis, Venkata Sivaramakrishna Ramadugu &amp; Govind Kanshi from the Azure Cosmos DB team<\/span><\/i><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p aria-level=\"1\">Azure Cosmos DB team is pleased to share exciting announcements.<\/p>\n<ul>\n<li aria-level=\"1\">The <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/continuous-backup-restore-introduction\">continuous 30 day backup<\/a> is now generally available for Table and Gremlin API.<\/li>\n<li aria-level=\"1\">The In Account restore (<a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/how-to-restore-in-account-continuous-backup?pivots=api-nosql&amp;tabs=azure-portal\">same account restore<\/a>) is available in preview.<\/li>\n<li aria-level=\"1\">The <span data-contrast=\"auto\"><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup#powershell\">continuous 7 days backup<\/a> tier is now generally available.\u00a0<\/span><\/li>\n<li aria-level=\"1\">Ability to restore without Network access is in preview.\n<hr \/>\n<\/li>\n<\/ul>\n<p aria-level=\"1\"><strong>Same account restore (Preview)\u00a0<\/strong><\/p>\n<p><span data-contrast=\"auto\">For a while now, customers who accidentally deleted a container or a database had to restore the deleted resources into another new account and then move the data into the source account. This was cumbersome for most customers, involving the setup of a data transfer mechanism. With In Account Restore (same account restore), now in public preview, you can restore deleted resources to the same existing account where they were deleted from. You can take advantage of same account restore from the Azure <\/span><a href=\"https:\/\/aka.ms\/inacct-restore-portal\"><span data-contrast=\"none\">portal<\/span><\/a><span data-contrast=\"auto\">, <\/span><a href=\"https:\/\/aka.ms\/inacct-restore-powershell\/\"><span data-contrast=\"none\">PowerShell<\/span><\/a><span data-contrast=\"auto\">, and <a href=\"https:\/\/aka.ms\/inacct-restore-cli\/\">Azure CLI<\/a>, eliminating the data transfer step. <\/span><\/p>\n<p><span data-contrast=\"auto\">We invite you to try to restore a container or database into the same <\/span><a href=\"https:\/\/aka.ms\/cdbinacctrestore\"><span data-contrast=\"none\">existing account<\/span><\/a><span data-contrast=\"auto\"> if you mistakenly delete them. <\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335551550&quot;:1,&quot;335551620&quot;:1,&quot;335559685&quot;:0,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\"><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/restore-in-account-portal-choose-date-refresh-restore-1.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6149\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/restore-in-account-portal-choose-date-refresh-restore-1.png\" alt=\"Image restore in account portal choose date refresh restore\" width=\"919\" height=\"764\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/restore-in-account-portal-choose-date-refresh-restore-1.png 919w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/restore-in-account-portal-choose-date-refresh-restore-1-300x249.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/restore-in-account-portal-choose-date-refresh-restore-1-768x638.png 768w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><\/a><\/span><\/p>\n<p aria-level=\"1\"><strong>Continuous 7 days backup (GA)\u00a0<\/strong><\/p>\n<p><span data-contrast=\"auto\">The <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup#powershell\">continuous 7 days backup<\/a> tier, now generally available, allows you to take advantage of storing continuous backup for 7 days at no cost. With this capability you can do point in time <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/restore-account-continuous-backup#restore-account-portal\"><span data-contrast=\"auto\">restore<\/span><\/a><span data-contrast=\"auto\"> within a retention window of 7 days<\/span><span data-contrast=\"none\">. \u00a0Customers using periodic restore can <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup\"><span data-contrast=\"auto\">migrate<\/span><\/a><span data-contrast=\"none\"> with a single click to this model, just like the <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup#portal\">continuous 30-day backup tier<\/a>. \u00a0You can <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup#change-continuous-mode-tiers\"><span data-contrast=\"auto\">switch<\/span><\/a><span data-contrast=\"none\"> between continuous 30-days or 7-days tiers once you are in continuous backup mode. <\/span><span data-contrast=\"auto\">To reiterate,<\/span><span data-contrast=\"none\"> the continuous 7 days backup tier does not cost a dime. <\/span><span data-contrast=\"auto\">T<\/span><span data-contrast=\"none\">ake advantage of this and <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/migrate-continuous-backup\"><span data-contrast=\"auto\">migrate<\/span><\/a><span data-contrast=\"none\"> your periodic accounts today. <\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335551550&quot;:1,&quot;335551620&quot;:1,&quot;335559685&quot;:0,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/change-migrate-backup-policy-1.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6148\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/change-migrate-backup-policy-1.png\" alt=\"Image change migrate backup policy\" width=\"504\" height=\"330\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/change-migrate-backup-policy-1.png 504w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2023\/05\/change-migrate-backup-policy-1-300x196.png 300w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/a><\/p>\n<p aria-level=\"1\"><strong>Restore without Network access (Preview)\u00a0<\/strong><\/p>\n<p><span data-contrast=\"auto\">We are also announcing the ability to restore the data to a new account with no public access. This helps customers<\/span> <span data-contrast=\"auto\">who create policies to prevent accounts with access outside the purview of trusted boundaries. This is achieved by providing an extra parameter of restore command in <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/restore-account-continuous-backup#trigger-restore-ps\"><span data-contrast=\"none\">PowerShell<\/span><\/a><span data-contrast=\"auto\"> (<\/span><span data-contrast=\"none\">-PublicNetworkAccess<\/span><span data-contrast=\"none\"> Disabled) and<\/span><span data-contrast=\"auto\"> Azure <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cosmos-db\/restore-account-continuous-backup#trigger-restore-cli\"><span data-contrast=\"none\">cli <\/span><\/a><span data-contrast=\"auto\">(<\/span><span data-contrast=\"none\"><code class=\"language-py\">--enable-public-network<\/code><\/span><span data-contrast=\"none\">\u00a0False)<\/span><span data-contrast=\"auto\">. Once the account is restored, you can add the firewall, private ip and other settings. <\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<pre class=\"prettyprint language-py\"><code class=\"language-py\">az cosmosdb restore \\\r\n --target-database-account-name MyRestoredCosmosDBDatabaseAccount \\\r\n --account-name MySourceAccountName \\\r\n --restore-timestamp 2020-07-13T16:03:41+0000 \\\r\n --resource-group MyResourceGroupName \\\r\n --location \"West US\"\r\n --enable-public-network False\r\n<\/code><\/pre>\n<h3 id=\"get-started-with-azure-cosmos-db-for-free\"><strong>Get Started with Azure Cosmos DB for free<\/strong><i class=\"fabric-icon fabric-icon--Link\" aria-hidden=\"true\"><\/i><\/h3>\n<p><a href=\"https:\/\/azure.microsoft.com\/en-us\/products\/cosmos-db\/\" target=\"_blank\" rel=\"noopener\">Azure Cosmos DB<\/a>\u00a0is a fully managed NoSQL and relational database for modern app development with SLA-backed speed and availability, automatic and instant scalability, and support for open source PostgreSQL, MongoDB and Apache Cassandra.\u00a0<a href=\"https:\/\/cosmos.azure.com\/try\/\" target=\"_blank\" rel=\"noopener\">Try Azure Cosmos DB for free here<\/a>. To stay in the loop on Azure Cosmos DB updates, follow us on\u00a0<a href=\"https:\/\/twitter.com\/AzureCosmosDB\" target=\"_blank\" rel=\"noopener\">Twitter<\/a>,\u00a0<a href=\"https:\/\/www.youtube.com\/AzureCosmosDB\" target=\"_blank\" rel=\"noopener\">YouTube<\/a>, and\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\" target=\"_blank\" rel=\"noopener\">LinkedIn<\/a>.<\/p>\n<pre class=\"prettyprint language-py\"><code class=\"language-py\"><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This blog post and the features are brought to you by Vinh Trinh, Mayank Katwal, Amit Singh, Kshittiz Kumar, Vineet Kumar, Dinesh Kumar, Chuck Skelton, Sidney Andrews, Joe Dennis, Venkata Sivaramakrishna Ramadugu &amp; Govind Kanshi from the Azure Cosmos DB team\u00a0 Azure Cosmos DB team is pleased to share exciting announcements. The continuous 30 day [&hellip;]<\/p>\n","protected":false},"author":10035,"featured_media":6149,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-6143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-core-sql-api"],"acf":[],"blog_post_summary":"<p>This blog post and the features are brought to you by Vinh Trinh, Mayank Katwal, Amit Singh, Kshittiz Kumar, Vineet Kumar, Dinesh Kumar, Chuck Skelton, Sidney Andrews, Joe Dennis, Venkata Sivaramakrishna Ramadugu &amp; Govind Kanshi from the Azure Cosmos DB team\u00a0 Azure Cosmos DB team is pleased to share exciting announcements. The continuous 30 day [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/6143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/10035"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=6143"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/6143\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/6149"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=6143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=6143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=6143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}