Was deze pagina nuttig?
Uw feedback over deze inhoud is belangrijk. Laat ons weten wat u denkt.
Aanvullende feedback?
1500 tekens resterend
MSDN Library

Recover Files and Folders Using the Windows Azure Online Backup Agent

Gepubliceerd: februari 2012

Bijgewerkt: april 2012

Van toepassing op: Windows Server 2012

You can recover data that was backed up with Windows Azure Online Backup onto any server running Windows Server 2012 that is connected to the Internet. This can be useful for disaster recovery situations where you are not able to get physical or network access to your servers. To continue operations, new servers can be configured at your temporary location and the data stored from the original servers can be restored onto the new servers, enabling users to regain access to their data faster.

In this document

noteOpmerking
Dit onderwerp bevat voorbeelden van Windows PowerShell-cmdlets waarmee u enkele van de beschreven procedures kunt automatiseren. Zie Een Windows PowerShell-cmdlet uitvoeren voor meer informatie.

Recovering a backup with Windows Azure Online Backup requires that you have subscribed to the Windows Azure Online Backup and installed the Windows Azure Online Backup Agent and all of its prerequisites as described in Sign Up for Windows Azure Online Backup and Install Windows Azure Online Backup Agent. It also requires that you have registered the server with Windows Azure Online Backup as described in Register Servers with Windows Azure Online Backup and taken at least one backup from the server as described in Schedule Backups Using the Windows Azure Online Backup Agent. After these tasks are completed successfully, you can recover backups by using the Windows Azure Online Backup snap-in (obsadmin.msc) or by using Windows PowerShell cmdlets for Windows Azure Online Backup.

Use this procedure to restore damaged or missing files and folders to the same server.

Do this step using Windows PowerShell

  1. Press the Windows logo key + Q to open the Apps menu, and then click Windows Azure Online Backup Agent. The Windows Azure Online Backup Agent snap-in should open.

  2. In the Action menu, click Recover Data to open the Recover Data Wizard. The Getting Started page is displayed. Click This server, and then click Next to continue.

  3. The Select Recovery Mode page is displayed. Choose one of the following modes:

    • Browse for files. Choose this option to browse the directory listing of the backup volume and specifically select the appropriate files or folders to recover.

    • Search for files. Choose this option to search for a specific file or folder by name. You can use wildcard characters to search for files or folders when you do not know the entire name.

    Click Next to continue.

  4. The Select Volume and Date page is displayed. From this page, you can select the volume and the point-in-time of the backup that you want to restore. If multiple backups were taken on a single day, you can use the drop-down arrow next to the time-of-day to select the backup that you want.

    Click Next to continue.

  5. The Select items to recover page is displayed. This page differs as follows, depending on whether you selected the Browse for files or Search for files option.

    1. Browse for files option Presents a tree control that you can navigate to select the files you want to recover.

    2. Search for files option Presents a text entry field where you can identify the volume to search and then type the file name or pattern to search for. Files that match the search criteria are listed so that you can select the files that you want to recover.

    After you have selected all of the files or folders that you want to recover, click Next to continue.

  6. The Specify recovery options page is displayed.

    Choose how to handle potential file conflicts during the recovery process by choosing one of the following options:

    • Create copies so that you have both versions This option makes a copy of the file with a new file name in the same location as the duplicate file. The file name of the new file starts with the following text string (<recovery date>Copy of<original file name>)

    • Overwrite the existing versions with the recovered versions This option overwrites the file, and the only version that will exist in the restore location is the recovered file version.

      CautionLet op
      The overwrite restoration option removes any file with the same file name. You should ensure that there is no valuable data that will be overwritten when you choose this option.

    • Do not recover the items that already exist on the recovery destination This option retains the current version of any files that already exist in the recovery destination. Recovery will occur only for data that does not exist in the recovery destination.

    In Security settings, select the check box to restore the access control list (ACL) settings of the files and folders that are recovered, or clear the check box to have the restored files and folders inherit the ACLs that are present in the recovery destination. Click Next to continue.

    WarningWaarschuwing
    Sharing settings are not recoverable. If a file or folder is shared when it is backed up, it will not be shared when it is recovered. You must reset the sharing settings manually after recovery.

  7. The Confirmation page is displayed. Verify that the items you are going to recover are the ones that you want and that they are being recovered to the correct location with the correct settings. If everything appears as you expect, click Recover to start the recovery process.

  8. The Recovery Progress page is displayed, which shows the progress of the recovery operation. You can close the wizard while the recovery is occurring and track the progress through the Windows Azure Online Backup snap-in. The Jobs pane shows the status of Job completed when the recovery is done.

PowerShell-logo Equivalente opdrachten van Windows PowerShell

Met de volgende Windows PowerShell-cmdlet of -cmdlets wordt dezelfde functie uitgevoerd als met de vorige procedure. Voer elke cmdlet in op een aparte regel, ook al lijkt de tekst mogelijk terug te lopen over meerdere regels hier vanwege opmaakbeperkingen.

The following Windows PowerShell cmdlets provide an example of how you could perform a local recovery (data that is backed up by using Windows Azure Online Backupand recovered to the same server):

$source = Get-OBRecoverableSource
$item = Get-OBRecoverableItem -Source $source[0]
$FinalItem = Get-OBRecoverableItem -ParentItem $item[0]
$paging_context = New-OBPagingContext

#To use the search function to find all .log files from a backed up location:
$search_page1 = Get-OBRecoverableItem –RecoveryPoint $item[0] –PagingContext $paging_context -SearchString *.log -Location C:\Windows\Logs


#To use the browse function to locate a certain file across backups, first establish the location parameters for the top and bottom of the search range: 
$recover_levelone = Get-OBRecoverableItem –PagingContext $paging_context -ParentItem $item
$recover_leveltwo = Get-OBRecoverableItem –PagingContext $paging_context -ParentItem $FinalItem

#Then run the recovery operation:
$recover_option = New-OBRecoveryOption
Start-OBRecovery -RecoverableItem $FinalItem -RecoveryOption $recover_option


This procedure steps you through the process of recovering data that was backed up on one server, and storing it on another server. This is known as “alternate server recovery.” Alternate server recovery is useful when your original server is no longer usable.

Do this step using Windows PowerShell

  1. Press the Windows logo key + Q to open the Apps menu, and then click Windows Azure Online Backup Agent. The Windows Azure Online Backup Agent snap-in should open.

  2. In the Action menu, click Recover Data to open the Recover Data Wizard. The Getting Started page is displayed. Choose Another server, and then click Next to continue.

  3. The Account Credentials page is displayed. Enter the user ID and password that you identified for use with Windows Azure Online Backup. Click Next to continue.

  4. The Select Backup Server page is displayed. You can choose a specific server name to recover data from, or you can search for data across all the servers that are registered with your subscription.

  5. The Select Recovery Mode page is displayed. Choose one of the following modes:

    • Browse for files Choose this option to browse the directory listing of the backup volume and specifically select the appropriate file or folder for recovery.

    • Search for files Choose this option to search for a specific file or folder by name across the servers that are registered with your subscription. You can use wildcard characters to search for files or folders when you do not know the entire name.

    Click Next to continue.

  6. The Select Volume and Date page is displayed. From this page, you can select the volume and the point-in-time for the backup that you want to restore. If multiple backups were taken on a single day, you can use the drop-down arrow next to the time-of-day to select the backup that you want.

    Click Next to continue.

  7. The Select items to recover page is displayed. This page differs as follows, depending on whether you selected the Browse for files or Search for files option.

    1. Browse for files option. You will be presented with a tree control through which you can navigate to select the files you want to recover.

    2. Search for files option. You will be presented with a text entry field where you can identify the volume to search and then type the file name or pattern to search for. Files that match the search criteria will be listed so that you can select the files you want to recover.

    When you have selected the files or folders to recover, click Next to continue.

  8. The Specify recovery options page is displayed.

    In Recovery destination, select Original location to recover the files to the same location on the server that they originated from or select Another location and then type the path to the location in the text box provided.

    Choose how to handle potential file conflicts during the recovery process by choosing one of the following options:

    • Create copies so that you have both versions. This option makes a copy of the file with a new file name in the same location as the duplicate file. The file name of the new file starts with the following text string (<recovery date>Copy of<original file name>)

    • Overwrite the existing versions with the recovered versions. This option overwrites the file, and the only version that will exist in the restore location is the recovered file version.

      CautionLet op
      The overwrite restoration option removes any file with the same file name. You should ensure that there is no valuable data that will be overwritten when you choose this option.

    • Do not recover the items that already exist on the recovery destination. This option retains the current version of any files that already exist in the recovery destination. Recovery will occur only for data that does not exist in the recovery destination.

    In Security settings select the check box to restore the access control list (ACL) settings of the files and folders that are recovered, or clear the check box to have the restored files and folders inherit the ACLs that are present in the recovery destination. Click Next to continue.

  9. The Confirmation page is displayed. Verify that the items you are going to recover are the ones that you want, and that they are being recovered to the correct location with the correct settings. In the Passphrase text box, enter the passphrase that you configured for the server from which you are recovering data. Click Recover to start the recovery process.

    noteOpmerking
    Each server that you register can be configured with a different passphrase. If you do not know the passphrase, you will not be able to recover the data from that server to an alternate server.

  10. The Recovery Progress page is displayed, which shows the progress of the recovery operation. You can close the wizard while recovery is occurring and track the progress through the Windows Azure Online Backup snap-in. The Jobs pane shows the status of Job completed when the recovery is done.

PowerShell-logo Equivalente opdrachten van Windows PowerShell

Met de volgende Windows PowerShell-cmdlet of -cmdlets wordt dezelfde functie uitgevoerd als met de vorige procedure. Voer elke cmdlet in op een aparte regel, ook al lijkt de tekst mogelijk terug te lopen over meerdere regels hier vanwege opmaakbeperkingen. Placeholder text in these samples is denoted by the use of angle brackets. You should replace that entire item, including the brackets, with the appropriate information.

This example recovers data from one server to the destination specified on another server, and it overwrites duplicated data in that location. Because this is an alternate server recovery, the encryption passphrase must be specified for recovery to occur.

$truepwd = "<password>"
$user = "<username@contoso.corp.com>"
$secureString = convertto-securestring -string $truepwd -asplaintext -force
$cstrial = new-object system.management.automation.pscredential $user, $secureString


$servers = Get-OBAlternateBackupServer -Credential $cstrial 
$source = Get-OBrecoverableSource -Credential $cstrial -Server $servers[0]
$item = Get-OBRecoverableItem -Source $source[0] -Credential $cstrial
$FinalItem = Get-OBRecoverableItem $item[0] -Credential $cstrial


$Path = "<Z:\Temp>"
$option = New-OBRecoveryOption -DestinationPath $Path 
$passphrase = "<passphrase>"
$secureString = convertto-securestring -string $passphrase -asplaintext –force

Start-OBRecovery -RecoverableItem $FinalItem -RecoveryOption $option -EncryptionPassphrase $secureString -Credential $cstrial

Weergeven:
© 2015 Microsoft