简体   繁体   English

SQL Server还原没有文件组的数据

[英]SQL Server restore data without filegroups

We have a SQL Server database with terabytes of files stored in filegroups. 我们有一个SQL Server数据库,其中有TB级的文件存储在文件组中。 In case of a catastrophic failure we restore a backup (includes data and files) which takes hours to completely restore. 万一发生灾难性故障,我们将还原备份(包括数据和文件),该备份需要数小时才能完全还原。 We would like to find a way to speed up the restore. 我们想找到一种加快还原速度的方法。

It would be ideal if we could get the database up and running quickly without the files. 如果我们可以在没有文件的情况下使数据库快速启动并运行,那将是理想的。 Then we could restore the files at a later time. 然后我们可以在以后还原文件。 Is it possible to backup the database without filegroups, restore the database without filegroups, then restore the filegroups? 是否可以备份不带文件组的数据库,还原不带文件组的数据库,然后还原文件组?

I have tried scripting out the database with data, executing the script, and then restoring the filegroups but this did not work. 我尝试用数据编写数据库脚本,执行脚本,然后还原文件组,但这没有用。

What are some other solutions that we could implement if this will not work? 如果无法解决,我们还有哪些其他解决方案可以实施?

It sounds like you have a small amount of critical data that is required to get the business back up and running, then a large amount of non-critical data that can be restored over a long period of time if need be. 听起来您需要少量的关键数据才能使业务恢复正常运行,然后又有大量的非关键数据可以根据需要在很长的时间内进行恢复。

Have you considered splitting this into 2 separate databases? 您是否考虑过将其分为两个独立的数据库?

Another option might be to set up replication on the smaller tables so that you maintain a duplicate database of the critical information. 另一个选择可能是在较小的表上设置复制,以便您维护关键信息的重复数据库。 You could restore THAT database in DR, then do a full restore and merge when completed. 您可以在DR中还原THAT数据库,然后完成完全还原并合并。

I'm not sure if Sql Server has a way to pull individual tables from a backup. 我不确定Sql Server是否可以从备份中提取单个表。 That might be an option. 那可能是一个选择。

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

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