免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7228 | 回复: 4
打印 上一主题 下一主题

[Server 2008] Win 2008 AD 目录备份 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-17 22:24 |只看该作者 |正序浏览
windows 2008AD域活动目录如何备份?Windows 2003 做了DC 之后备份DC 也才600-800 M 之间, 不会超过1G的, 现在Windows 2008 备份DC ,好像没有那个系统状态的选择了, 动则几个G .  有没有办法减小2008 备份文件大小 到2003 的水平?windows 2008活动目录备份DC后,恢复方法还是和2003一样吗?
回答:首先,我想说明下Windows 2008的备份和以前的Windows 2003备份是不一样的。NTbackup工具在Windows 2008上面已经不用了。

当然您还是可以在Windows 2008中单独的备份域控制器的系统状态,只是这样的操作只能在命令行下面进行再图形界面上面是没有单独备份系统状态这个操作的。具体的步骤,请您参考以下的文章:

Perform a System State Backup of a Domain Controller by Using the Command Line (Wbadmin)
http://technet.microsoft.com/en-us/library/cc772482.aspx

其次,在域控制器上面执行授权还原或者非授权还原和Windows 2003也是有所不同的。
windows 2008中ntbackup已经去除,而使用Windows Server Backup (WB)替代为整体化的备份方案,在备份的时至少需要选择一个卷,这样就导致备份出来的文件特别大。考虑到windows 2008 活动目录备份的需求,WB提供了一个命令行,并且提供了  systemstatebackup 的参数,详细的命令行如下:
wbadmin start systemstatebackup -backuptarget:c:
不过这里需要注意几点
1、这个工具默认限制不能将备份文件放置于系统盘,所以,上面的的命令行会有一个错误提示:
ERROR - The location for backup is a critical volume.
这个错误提示的意思就是说,您需要将备份文件放置于其它非系统盘。如果您使用的虚拟机环境,或者确认不方便将备份文件放置于非系统盘,您可以使用如下方法解除这个限制:
浏览到注册表子键 HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\wbengine
新建一个子项 SystemStateBackup,在其下新建一个键值,即可在系统卷保存备份文件。这个键值一经建立,立即生效,无需重新启动计算机。如果要恢复设置,只需要简单的将这个键值删除,或者修改为0就可以了。
名称:AllowSSBToAnyVolume
类型:DWORD
键值:1
2、备份文件所放置的卷至少需要具有6GB的剩余空间
3、备份文件使用.vhd格式,而不是原来的.bkf格式。
Windows 2008AD域活动目录系统状态备份的一个命令行样例如下:
C:\\Users\\Administrator>wbadmin start systemstatebackup -backuptarget:e:
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.
Starting System State Backup [5/26/2008 12:34 AM]
Retrieving volume information…
This would backup the system state from volume(s) Local Disk(C to e:.
Do you want to start the backup operation?
[Y] Yes [N] No y
Creating the shadow copy of volumes requested for backup.
Found (0) files
Found (3337) files
Found (7115) files
Found (1069 files
Found (29495) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Found (44795) files
Search for system state files complete
Starting backup of files
Overall progress - 0% (Currently backing up files reported by ‘System Writer’)
Overall progress - 0% (Currently backing up files reported by ‘System Writer’)
Overall progress - 0% (Currently backing up files reported by ‘System Writer’)
Overall progress - 0% (Currently backing up files reported by ‘System Writer’)
Overall progress - 0% (Currently backing up files reported by ‘System Writer’)
Overall progress - 1% (Currently backing up files reported by ‘System Writer’)
Overall progress - 1% (Currently backing up files reported by ‘System Writer’)
Overall progress - 2% (Currently backing up files reported by ‘System Writer’)
Overall progress - 2% (Currently backing up files reported by ‘System Writer’)
Overall progress - 2% (Currently backing up files reported by ‘System Writer’)
Overall progress - 3% (Currently backing up files reported by ‘System Writer’)
Overall progress - 3% (Currently backing up files reported by ‘System Writer’)
.
.
.
Overall progress - 98% (Currently backing up files reported by ‘System Writer’)
Overall progress - 98% (Currently backing up files reported by ‘System Writer’)
Overall progress - 98% (Currently backing up files reported by ‘System Writer’)
Overall progress - 98% (Currently backing up files reported by ‘System Writer’)
Backup of files reported by ‘System Writer’ completed
Overall progress - 98% (Currently backing up files reported by ‘WMI Writer’)
Backup of files reported by ‘WMI Writer’ completed
Overall progress - 99% (Currently backing up files reported by ‘Registry Writer’)
Overall progress - 99% (Currently backing up files reported by ‘Registry Writer’)
Summary of backup:
——————
Backup of system state completed successfully [5/26/2008 1:37 AM]
Log of files successfully backed up
‘C:\\Windows\\Logs\\WindowsServerBackup\\SystemStateBackup 26-05-2008 00-34-54.log’
请您参考以下的文章:

对 AD DS 执行非权威还原
http://technet.microsoft.com/zh-cn/library/cc730683.aspx

执行已删除 AD DS 对象的授权还原
http://technet.microsoft.com/zh-cn/library/cc755296.aspx

参考:
======
执行域控制器的整个服务器恢复
http://technet.microsoft.com/zh-cn/library/cc772519.aspx

论坛徽章:
0
5 [报告]
发表于 2009-11-19 15:18 |只看该作者
2008还没怎么接触,要抽时间好好学习了

论坛徽章:
0
4 [报告]
发表于 2009-11-19 15:03 |只看该作者
是可以图形话的,不过微软也做出了节省资源并可提高效率的命令行

论坛徽章:
0
3 [报告]
发表于 2009-11-19 15:00 |只看该作者
变化不少啊,备个状态都要命令了

论坛徽章:
0
2 [报告]
发表于 2009-11-19 11:26 |只看该作者
在Windows server 2008中要执行系统状态备份,请执行以下操作:
C:\\> wbadmin start systemstatebackup –backuptarget:e:
其含义是使用wbadmin.EXE将系统状态备份到E盘。
MMC 管理单元不提供此选项。
WBADMIN 然后会将关键系统文件和应用程序数据库备份至目标卷(在为系统状态备份而保留的文件夹中)。系统状态备份在具有默认目录信息树 (DIT) 的 32 位 Windows Server 2008 域控制器 (DC) 上运行时要稍大于 6GB——这比在 Windows Server 2003 上大 5GB,部分原因是 Windows Server Backup 捕获核心操作系统文件,而 NTBACKUP 并不捕获此类文件。
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP