我正在通过 bareos 在 Windows 10 系统上运行系统状态备份......
备份前后,系统状态备份在客户端计算机上运行,但我的备份在备份完成之前一直失败。目标分区未满;这是一个全新的 Windows 10 PRO OEM 安装。
该机器有4个分区:
- 15GB 工厂恢复分区(PQSERVICE,无字母)(已备份)
- 100MB 系统保留分区(SYSTEM RESERVED),无字母)(未备份)
- 160GB NTFS(C:)(已备份)
- 58GB wbadmin_backup_space (F:)(备份目标)
我在脚本中使用以下命令.bat
来备份它
wbadmin start backup -backupTarget:f: -include:C: -allCritical -quiet
然后我使用另一个文件清除分区上的备份.bat
:
rmdir f:\WindowsImageBackup /s /q
命令wbadmin
失败:
备份结束时出现以下错误:
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: Creating a backup of volume PQSERVICE (15.00 GB), copied (0%).
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: Creating a backup of volume PQSERVICE (15.00 GB), copied (100%).
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: Summary of the backup operation:
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: ------------------
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob:
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: The backup operation stopped before completing.
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: The backup operation stopped before completing.
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: Log of files successfully backed up:
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: C:\Windows\Logs\WindowsBackup\Backup-23-12-2016_22-37-32.log
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob:
23-Dec 22:41 leeand00-pc-fd JobId 217: ClientBeforeJob: The specified backup storage location has the shadow copy storage on another volume.
23-Dec 22:41 leeand00-pc-fd JobId 217: Error: Runscript: ClientBeforeJob returned non-zero status=253. ERR=Unknown error
23-Dec 22:41 lamp-dir JobId 217: Fatal error: Bad response to RunBeforeNow command: wanted 2000 OK RunBeforeNow
, got 2905 Failed RunScript
我看见这里我需要更改系统保护设置来修复错误,因此我执行以下操作:
- 在任何资源管理器窗口中,右键单击并选择:
This PC -> Properties
- 点击
System protection
- 然后在
System protection
窗口中,我注意到 PQSERVICE 分区已设置保护Off
,因此我将其设置为On
- 重新启动了机器...
- 再次尝试备份...并收到相同的错误消息和结果。
但是,它仍然出错...并显示相同的错误消息。有什么办法可以让此wbadmin
系统状态备份命令正常工作吗?
此外,如果它有任何相关性,我会在我的错误和备份日志中得到以下内容:
Backup of volume \\?\Volume{924cde0a-0000-0000-0000-10c003000000}\ succeeded.
Backup of volume C: succeeded.
Backup of volume \\?\Volume{924cde0a-0000-0000-0000-100000000000}\ succeeded.
C:\Windows\Logs\WindowsBackup\Backup-23-12-2016_22-37-32.log
Backup_Error-23-12-2016_22-37-32.log (此文件只是空白的)
答案1
看来 wbadmin 发出的错误消息The specified backup storage location has the shadow copy storage on another volume.
表明我正在执行备份的卷需要打开系统保护。
要在 Windows 10 中修复此问题:
- 右键单击
This PC
并选择Properties
- 在出现的
System
窗口中,单击左上角System protection
- 选择要创建 Windows 系统状态(Windows 7)备份的卷。
- 单击
Configure...
按钮。 - 在出现的
System Protection for <volume-name> (DriveLetter:)
对话框中,- 单击
Turn on system protection
对话框。 - 如果你发现你需要,减少
Max Usage:
- 此外,如果在实际运行备份时出现有关可用磁盘空间的错误,则您需要扩大分区,或者单击按钮
Delete
清理任何还原点(前提是此卷/驱动器仅用于备份)。
- 单击