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.
Syntaxe
Parameter Set: Default
Set-OBInitialBackupCreationMethod -Policy <CBPolicy> [-AzureImportJobName <String> ] [-AzurePublishSettings <String> ] [-AzureStorageAccount <String> ] [-AzureStorageContainer <String> ] [-AzureSubscriptionID <String> ] [-IBMethod <String> ] [-StagingLocation <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Description détaillée
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.
Paramètres
-AzureImportJobName<String>
Specifies the name of the import job.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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. Les valeurs acceptables pour ce paramètre sont les suivantes : Network, OfflineBackup.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Policy<CBPolicy>
Specifies the online backup policy associated with the server.
Alias |
none |
Requis ? |
true |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
none |
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Confirm
Vous invite à confirmer l'exécution de l'applet de commande.
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
false |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-WhatIf
Indique ce qui se produit en cas d'exécution de l'applet de commande. L'applet de commande n'est pas exécutée.
Requis ? |
false |
Position ? |
named |
Valeur par défaut |
false |
Accepter l'entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d'informations, consultez . about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d'entrée correspond au type des objets que vous pouvez adresser à l'applet de commande.
Sorties
Le type de sortie correspond au type des objets que l'applet de commande émet.
Exemples
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"