In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use PowerShell tools for bare metal recovery. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
In the last few versions of Windows Server, Microsoft has invested heavily in PowerShell tools to make them flexible and available. One of the highlights is that in Windows Server 2008 R2 and Windows Server 2012, you can create backups that can be used for bare metal recovery through PowerShell. In this article, we will discuss how to do it.
While backups for bare metal recovery via PowerShell are not required now, Microsoft claims PowerShell is Microsoft's recommended Windows server management interface, and traditional graphics-based management will eventually become a thing of the past. Therefore, system administrators need to master PowerShell to avoid being obsolete by the times.
The recovery operations used vary from application to application. The main object of this article is Windows Server Backup Application. Of course, there are other backup vendors that support command-line backup operations, but different vendors provide different commands.
Therefore, some preparation work needs to be done on Windows Server for Windows Server backup commands to be installed in PowerShell:
In Windows Server 2012, the required PowerShell modules are automatically loaded, however if you are using Windows Server 2008 R2, you need to run the All Modules command to load the required module components.
Increase bare metal recovery capabilities
Windows backup policies specify whether bare metal backups can be created or restored. Therefore, users need to first decide whether such a policy exists. We can see this by running the Get-WBPolicy cmdlet command.
If you don't see a Windows backup policy, you need to create one. This is done by running the New-WBPolicy cmdlet.
Once the Windows backup policy is created, it needs to be modified to allow bare metal recovery. To make this change, you need to be a member of the Administrators group or the Backup Operators group. In addition, the policy needs to be set to a changeable state before it can be modified.
If you have just created it via the New-WBPolicy cmdlet, the new policy should display status changeable. If not, you need to add the-editable suffix to the Get-WBPolicy cmdlet command as a parameter.
Once a Windows backup policy is marked editable, bare metal recovery can be added to the policy through the Add-WB BareMetalRecovery cmdlet. As an operation, you also need to add the suffix-policy to specify the corresponding windows backup policy. The usual command format is written as follows:
Add-WBBareMetalRecovery –Policy $policy
Once you add bare metal recovery to your Windows backup strategy, you also need to confirm that the operation was successful. The most convenient way is to use the Get-WareMetalRecovery cmdlet command to see if bare metal recovery is included in the policy. The command format is as follows:
Get-WBBareMetalRecovery –Policy $policy
Once a policy is created, it is especially convenient to use. You can run the Start-WBBackup cmdlet to complete the backup operation. Simply tell Windows that you want to use the previously created policy.
The location of the backup is also usually specified, basically via the New-WBBackupTarget cmdlet command. When complete, specify the destination location for the backup with this command. For example, a user can specify a backup destination using the following command:
$BackupLocation = New=WBBackupTarget –VolumePath E: Add-WBBackupTarget –Policy $Policy –Target $BackupLocation
Once you have specified the backup target, you can start the backup process. This can be done with the following command:
Start-WBBackup –Policy $policy
Although this command manually creates a backup operation, scheduled backup schedules can also be done this easily.
Combine these operations
Although we discussed the different command uses earlier, I wanted to be able to combine these operations of creating backup policies, providing bare metal recovery capabilities, and initiating backups. Specific commands can be found in the following examples:
$policy = New-WBpolicy Add-WBBareMetalRecovery $policy $BackupLocation = New-WBBackupTarget-VolumePath E: Add-WBBackupTarget-Policy $Policy-Target $BackupLocation Start-WBBackup-Policy $policy Thank you for reading! About "How to use PowerShell tools for bare metal recovery" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.