小编Xin*_*Liu的帖子

整个数据库的零碎还原 - 前滚和还原多个文件的最快方法

我有一个数据库,它有两个文件组(都是 r/w),每个文件组有两个文件。备份顺序是:

  1. 完整备份
  2. 多个事务日志备份(tlog set1)
  3. 文件组 1 的文件 1 的完整备份
  4. 多个事务日志备份(tlog set2)
  5. 文件组 1 的文件 2 的完整备份
  6. 多个事务日志备份(tlog set3)
  7. 文件组 2 的文件 1 的完整备份
  8. 多个事务日志备份(tlog set4)
  9. 文件组 2 的文件 2 的完整备份
  10. 多个事务日志备份(tlog set5)
  11. 尾日志备份

我在网上找到的指导是,要恢复file1,我需要恢复file1备份,然后前滚tlog集1-5和尾日志。

但是,假设我需要在最短的时间内恢复整个数据库,我可以使用以下序列:

Restore file1 filegroup1
restore tlog set2 --roll forward to file 2 backup
restore file2 filegroup1
restore tlog set3 
restore file1 filegroup2
restore tlog set4
restore file2 filegroup2
restore tlog set5
restore tail
Run Code Online (Sandbox Code Playgroud)

我必须做吗

Restore file1 filegroup1
Restore tlog set2 -- roll forward to current …
Run Code Online (Sandbox Code Playgroud)

sql-server restore

5
推荐指数
1
解决办法
250
查看次数

标签 统计

restore ×1

sql-server ×1