简体   繁体   English

SQL Azure中的备份策略

[英]Backup Strategy in SQL Azure

Do we have any standard way of daily backing up SQL Azure databases to onprim? 我们是否有任何日常将SQL Azure数据库备份到onprim的标准方法? I know about the option of making backups to Storage, but on a daily basis, if we backup on storage blobs we will end up having many files and it will incur a high cost with Azure. 我知道可以备份到存储的选项,但是每天,如果我们在存储Blob上进行备份,最终将拥有许多文件,而Azure将导致高昂的成本。

  1. We need to take backup of SQL Azure Databases directly to onprim disks. 我们需要将SQL Azure数据库直接备份到onprim磁盘上。
  2. Maintain only two latest backups on the disk. 在磁盘上仅维护两个最新备份。

Do we have mechanism to schedule daily backup to storage blob and maintain only two copies at any moment of time? 我们是否有计划将每日备份计划到存储Blob并在任何时间仅维护两个副本的机制?

Not sure if the new SQL Database Point-in-time feature is good to you. 不确定新的SQL数据库时间点功能是否对您有利。 You need to enable this preview feature and select a new edition when creating your database. 创建数据库时,需要启用此预览功能并选择一个新版本。 "Basic" edition support daily backup stores in the past 24 hours while "Standard" and "Premium" editions provides point-in-time backup stores backups in the past 7 days and 35 days. “基本”版本支持过去24小时的每日备份存储,而“标准”和“高级”版本则提供过去7天和35天的时间点备份存储备份。

Alternatively you need to pragmatically backup the database in blob and remove the old ones through worker role, scheduler, webjob. 另外,您需要务实地备份blob中的数据库,并通过辅助角色,调度程序,webjob删除旧数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM