Set-OBInitialBackupCreationMethod
Set-OBInitialBackupCreationMethod
Specifies how Backup creates an initial backup copy, which can be either over the network, or by using a disk you send to an Azure- datacenter.
Syntax
Parameter Set: Default
Set-OBInitialBackupCreationMethod -Policy <CBPolicy> [-AzureImportJobName <String> ] [-AzurePublishSettings <String> ] [-AzureStorageAccount <String> ] [-AzureStorageContainer <String> ] [-AzureSubscriptionID <String> ] [-IBMethod <String> ] [-StagingLocation <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detaillierte Beschreibung
The Set-OBInitialBackupCreationMethod cmdlet specifies whether Azure- Backup creates an initial backup copy automatically over the network, or offline by using the Azure- Import/Export service. To create an offline backup, you use an Azure- import job that notifies the Import/Export service that you are shipping hard drives to an Azure- data center. If you specify an offline backup, this cmdlet provides parameters to identify the Azure- import job and move the backup copy from the storage container to the backup vault.
Parameter
-AzureImportJobName<String>
Specifies the name of the import job.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-AzurePublishSettings<String>
Specifies the path to the publish settings file that contains information about the storage account that you use to move the backup copy to the backup vault.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-AzureStorageAccount<String>
Specifies an Azure- Storage account that the Azure- import job uses to copy the initial backup copy from the on-premises installation to an Azure- data center.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-AzureStorageContainer<String>
Specifies an Azure- Storage container that the Azure- import job uses to copy the initial backup copy from the on-premises installation to an Azure- data center.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-AzureSubscriptionID<String>
Specifies an Azure- Subscription ID that the Azure- import job uses to copy the initial backup copy from the on-premises installation to an Azure- data center.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-IBMethod<String>
Specifies the method that Azure- Backup uses to create the initial backup copy. This can be either through the network or by using an offline backup to ship a disk to an Azure- data center. Die zulässigen Werte für diesen Parameter sind: Network, OfflineBackup.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Policy<CBPolicy>
Specifies the online backup policy associated with the server.
Aliase |
none |
Erforderlich? |
true |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-StagingLocation<String>
Specifies the path to the staging location at which to create the initial backup copy. This backup copy is then copied from the staging location to the disk and shipped to the Azure- data center using an Azure- import job.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Confirm
Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WhatIf
Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Beispiele
Example 1: Specify that Backup creates the initial backup copy over the network
This command specifies that Backup creates the initial backup copy automatically, by using the network. The $Policy01 variable contains the server policy that you can retrieve using Get-OBPolicy.
PS C:\> Set-OBInitialBackupCreationMethod -Policy $Policy01 -IBMethod "Network"
Example 2: Specify that Backup creates the initial backup copy offline
This command specifies that Backup creates the initial backup copy offline, by using an import job named BackupJob01. The parameters also specify the staging location at which to create the initial backup copy, the name of the import job that notifies the Import/Export service that you are shipping hard drives to a data center, and the publish file, Azure- Subscription ID, Storage account, and Storage container that the import job uses.
PS C:\> Set-OBInitialBackupCreationMethod -Policy $Policy01 -IBMethod "OfflineBackup" -StagingLocation "D:\SalesData" -AzureImportJobName "BackupJob01" -AzurePublishSettings "C:\Users\Downloads\AzureOrg.publishsettings" -AzureSubscriptionID "a53949b2-82fd-4d4d-853a-509b6e6e07ca" -AzureStorageAccount "BackupFinanceAccount" -AzureStorageContainer "SalesStorage"