Windows Server Backup 备份Hypver-V VM
在Windows Server 2012中,可以通过Windows Server Backup备份Hypver-V VM。在还原时,将会还原到Hypver-V管理器中。
设置只保存2个备份副本,命令如下:
wbadmin delete backup -keepversions:2 -quiet
计划任务:
程序:wbadmin.exe
参数: delete backup -keepversions:2 -quiet (注:delete前面有一个空格)
======================================
When DPM protects a Hyper-V guest using HOST level protection, the Hyper-V writer on the hyper-V host communicates with the integration components inside the guest and determines if child partition or saved state backup will be performed. Once DPM adds the guest to a protection group, the description: "Backup using child partition" or "backup using saved state" will not change, even thought the condition that determines the state may change.
To get a real-time view of how then next backup will be perfomed, you can run the following test.
To list hyper-V writer captions for guests to see if online or saved state backups can be done:
From an administrative command prompt:
a. Type: copy con script.txt and press enter
b. Type: list writers and press enter
c. Press CTRL + Z (to save)
d. Type: diskshadow /s script.txt | find /i "caption: backup using"
Output will be displayed for each guest.
Here are the general conditions that make a VM go into a saved state during backup.
Protecting Hyper-V machines
http://technet.microsoft.com/en-us/library/hh757866.aspx
Conditions when DPM fails to back up Hyper-V virtual machines in an online state
By default, System Center 2012 – Data Protection Manager (DPM) performs a backup of a Hyper-V Virtual Machine (VM) in an online state. However, DPM cannot back up a Hyper-V VM in an online state, if one or more of the following conditions are true:
•Backup (Volume Snapshot) Integration Service is disabled or not installed.
•The virtual machine has one or more dynamic disks.
•The virtual machine has one or more non-NTFS based volumes.
•The virtual machine Cluster Resource Group in a cluster setup is offline.
•The virtual machine is not in a running state.
•A ShadowStorage assignment of a volume inside the virtual machine is explicitly set to a different volume other than itself.
•An App-V drive is installed on the virtual machine that creates a non-NTFS volume.
These conditions are set by the Hyper-V writer. In such a case, the VM is put in a saved state before a snapshot of host volumes are taken (except when the VM is turned off) for a backup. The Hyper-V writer adds the VM in the following format:
•For offline backups: Backup Using Saved State\<VMName>
•For online backups: Backup Using Child Partition Snapshot\<VMName>
Additional reason is if there is less than 300MB free space on a volume in the guest.
If you are using DPM 2010/2012/2012 Sp1 to backup Windows 2008 (R2) hyper-v guests you may observe that Windows 2012 server / Windows 8 guest VM's only get the option "Backup using saved state". It is also reported that some Windows 2012 server guests transfer the whole VM during backups instead on block level changes.
The below resolves both of these issues.
SOLUTION
=======
The Hyper-V integration components needs to have scoped VSS snapshots to be turned off in order to support hot backups. This is a new feature apparently in Win8/2012 and the default is enabled.
Implement this registry key on EACH Windows 8 or Windows 2012 guest to resolve the issue. You must add a key called SystemRestore, then add a value called ScopeSnapshots as follows.
HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore
REG_DWORD ScopeSnapshots 0x0
See the additional info on scoped snapshots.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa378941(v=vs.85).aspx
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
From:http://social.technet.microsoft.com/Forums/en-US/9c3371f9-a3d3-4183-be99-a9f254ec5352/backup-hyperv-using-child-partition?forum=dpmhypervbackup
===========================================================================
为计划备份配置磁盘后,Windows Server Backup 将自动管理磁盘的使用情况 - 您不需要担心多次备份之后的磁盘空间不足。创建新备份时,Windows Server Backup 将自动重复使用旧备份的空间(当没有足够的磁盘空间来执行本次备份时)。
D盘需要清理被备份副本占用的磁盘空间, 我们可以使用下面的命令来手动清除这些副本:
1. 打开命令提示行,如果您使用是的Windows Server 2008 或以上的版本,请用管理员权限来打开命令提示行。
2. 输入 VSSAdmin delete shadows /for=c: /oldest 回车。请注意,每个“/”都有一个空格。
3. 您可以重复运行这条命令多次来释放必要的磁盘空间。您看到的文章来自活动目录seo http://gnaw0725.blog.51cto.com/156601/d-3
另外,您可以通过 VSSAdmin list shadows来查看每个备份副本的信息,这些信息里包含了创建的时间点和这些副本的GUID。
您可以使用vssadmin delete shadows /shadow={特定的副本GUID} 回车来删除指定的备份副本。
*注* 副本的GUID通常是:{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX } 这样的形式。
Windows Server Backup 备份Hypver-V VM的更多相关文章
- Windows Server Backup备份Exchange2010
在Windows Server 2008 R2 SP1上Exchange2010 DAG备份测试成功: 1.分别在DAG成员服务器上安装WSB,不可以安装其命令行工具,因为其需要早期的PowerShe ...
- Windows Server Backup(2016) 备份
1. 使用 Windows Server Backup 备份 如果服务器没有启用 Windows Server Backup,需要打开服务器管理器,如下图 点击添加角色和功能,根据向导,添加 Wind ...
- Windows server用好windows server backup,发挥个人电脑该有的系统还原功能
笔记本上安装windows server的各位是不是有个感触,默认软件升级.软件更新,系统是没有系统还原的(磁盘清理发现也没有还原点可清理),也就是系统出了问题,还原不了干着急. 其实,windows ...
- Windows Server Backup 裸机恢复
1.打开“Windows Server Backup”选择本地备份,并在操作栏选择“一次性备份”:(在实际生产环境中可以根据自己的需求,选择一次性备份还是选择备份计划.) 2.打开“一次性备份向导”, ...
- [网络管理]windows server backup
ERPserver每天备份与每月1号备份数据.备份到本机.从备份安全机制来说这是远远不够的.故是否能定期备份数据文件到另外一台server呢?(异地备份) windows server 提供了serv ...
- Windows Server Backup保留副本数量的问题
在配置Windows Server Backup的时候可以配置备份时间点和备份存放位置,但是无法配置保留备份的数量.作为微软提供的一个基本的备份工具,做简单的备份还是可以的.但是对于同一备份任务,反复 ...
- Windows Server Backup 2008 R2 备份Hyper-V
要备份 Hyper-V 虚拟机从父分区在 Windows Server 2008 上使用 Windows 服务器备份,您必须注册 Microsoft Hyper-V VSS 编写器 Windows 服 ...
- Windows-删除Windows Server backup卷影副本
现有环境中有一台Windows Server做过定期备份计划,时间太久未做清理操作,收到磁盘报警邮件后需要及时释放该空间,具体操作步骤如下: 当前备份计划信息如下: 清理步骤如下: 1.以管理身份运行 ...
- 怎样删除windows server back 备份副本文件
我用的服务器是windows server 2012 下面说明 第一步:打开windows powershell 第二步:输入命令 DISKSHADOW 第二步:输入 delete shadows ...
随机推荐
- mysql数据库中查询汉字的拼音首字母
本人提供的方法有如下特点: 1.代码精简,使用简单,只要会基本的SQL语句就行2.不用建立mysql 函数等复杂的东西3.汉字库最全,可查询20902个汉字 方法如下: 1.建立拼音首字母资料表Sql ...
- ASP.NET Web API 帮助(help)页面上没有 Test API按钮的解决方法
参与一个web API项目时发现它的help页面特别好用,不仅可以根据webapi的方法和注释自动生成帮助文档以方便查阅,还可以在这个页面上测试webapi方法.于是在自己新建项目时也打算将这个hel ...
- 自定义View(二)--继承自ViewGroup
自定义View包括很多种,上一次随笔中的那一种是完全继承自View,这次写的这个小Demo是继承自ViewGroup的,主要是将自定义View继承自ViewGroup的这个流程来梳理一下,这次的Dem ...
- inno setup详细使用教程
前段时间我完成了几个软件的汉化,想把它们打包起来,可是苦于我是一个很菜的鸟,很笨的瓜,只好上网找关于安装程序制作的文章.不幸我没能找到:-( 没法只好自己去华军软件园里找找制作安装程序的软件,并一把下 ...
- 代理抓取RSS信息
最近工作很闲,就自己写了一个可以看RSS订阅的网站.话说,RSS阅读器到处都是,随便下一个就可以了,为什么还去做一个网站形式的呢?作为一个热(xian)爱(de)前(dan)端(teng)的程序员,我 ...
- C++C#时间转换
time_t是从1970年1月1日的格林尼治时间开始的,所以以下就是你要的结果System.DateTime time= new System.DateTime(1970, 1, 1).ToLocal ...
- 2015 NI 校招笔试机试面试
美国国家仪器NI也算是入驻上海很好的一家外企了,它是我们院的合作公司,加上今年NI在我们院扩招实习生,这次是一个难得的机会可以进入NI实习,可惜我并没有好好把握... 一.笔试 几个做错的印象特别深刻 ...
- ajax 访问--提高安全性
首先受到struts token的启发,产生了客户端发起的ajax请求进行验证的想法,大致思路是客户端每次请求产生一个key ,然后服务端接收到key,然后解析,判断是否为合法key, 对于不带key ...
- 判断是否为BST
递归的方法,用返回false的方法.中序遍历的想法很好,空间浪费.遍历的过程记录上一次的值进行比较. //题目描述 // //请实现一个函数,检查一棵二叉树是否为二叉查找树. //给定树的根结点指针T ...
- 关系数据库&&NoSQL数据库
在过去,我们只需要学习和使用一种数据库技术,就能做几乎所有的数据库应用开发.因为成熟稳定的关系数据库产品并不是很多,而供你选择的免费版本就更加少了,所以互联网领域基本上都选择了免费的MySQL数据库. ...