Add-VBORepository
Short Description
Adds a JET-based backup repository or an object storage repository to the Veeam Backup for Microsoft 365 infrastructure.
Syntax
This cmdlet provides the following parameter sets:
-
DefaultParameterSet (Default)Add-VBORepository -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String>
[-Description <String>] [-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
-
DailyParameterSetAdd-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType>
-DailyTime <TimeSpan> -DailyType <VBODailyType> -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>]
-Name <String> [-Description <String>] [-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
-
DailyObjectStorageParameterSetAdd-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType>
-DailyTime <TimeSpan> -DailyType <VBODailyType> -ObjectStorageRepository <VBOObjectStorageRepository>
[-ObjectStorageEncryptionKey <IVBOCredentialKey>] [-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation]
-Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>]
[-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
-
MonthlyParameterSetAdd-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType>
-MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> -Path <String>
[-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>]
[-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
-
MonthlyObjectStorageParameterSetAdd-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType>
-MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek>
-ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <IVBOCredentialKey>]
[-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>]
[-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>]
[-Force] [<CommonParameters>]
-
DailyCustomRetentionParameterSetAdd-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32>
-RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType>
-Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>]
[-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
-
DailyCustomRetentionObjectStorageParameterSetAdd-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32>
-RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType>
-ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <IVBOCredentialKey>]
[-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>]
[-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>]
[-Force] [<CommonParameters>]
-
MonthlyCustomRetentionParameterSetAdd-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32>
-RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan>
-MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> -Path <String> [-Proxy <VBOProxy>]
[-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>]
[-Force] [<CommonParameters>]
-
MonthlyCustomRetentionObjectStorageParameterSetAdd-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32>
-RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan>
-MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek>
-ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <IVBOCredentialKey>]
[-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>]
[-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>]
[-Force] [<CommonParameters>]
-
DefaultObjectStorageParameterSetAdd-VBORepository -ObjectStorageRepository <VBOObjectStorageRepository>
[-ObjectStorageEncryptionKey <IVBOCredentialKey>] [-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation]
-Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>]
[-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>]
Detailed Description
This cmdlet adds the following types of backup repositories to the Veeam Backup for Microsoft 365 infrastructure: a JET-based backup repository or an object storage repository. Veeam Backup for Microsoft 365 uses backup repositories as storage systems for backups and backup copies created for Microsoft 365 and on-premises Microsoft organizations. Every backup repository has the retention policy that defines how long you want to keep backups on a backup repository.
You can specify the following retention policy settings:
- Retention period to specify how long you want to keep data on a backup repository. You can set the period to years, months or days.
- Retention policy schedule to specify the day and time when Veeam Backup for Microsoft 365 must check the backup repository and remove the outdated backups. You can set the schedule to daily or monthly.
- Retention policy type to set it to Item-level or to snapshot-based types.
For more information on retention policy, see the Retention Policy section of the Veeam Backup for Microsoft 365 User Guide.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CustomRetentionPeriod |
For the
Specifies the retention period to keep data on a backup repository. The retention period is defined according to the
Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. |
|
True |
Named |
False |
|
CustomRetentionPeriodType |
Specifies a type of custom retention period. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set the custom retention period to either of the following types:
Set the |
|
True |
Named |
False |
|
DailyTime |
For daily retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 00:00:00 |
|
True |
Named |
False |
|
DailyType |
For daily retention policy schedule. Specifies the days when Veeam Backup for Microsoft 365 must apply the retention policy:
Default: Everyday |
|
True |
Named |
False |
|
Description |
Specifies a description of the backup repository. The default description contains information on the user who added the backup repository, date and time when the backup repository was added. |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will add a backup repository to the Veeam Backup for Microsoft 365 infrastructure without notifying the user. Default: False |
|
False |
Named |
False |
|
IgnoreProxyPoolApplianceAccessValidation |
Defines that the cmdlet will ignore check whether backup proxy servers that belong to the specified backup proxy pool can access the archiver appliance. Default: False |
|
False |
Named |
False |
|
MonthlyDayNumber |
For monthly retention policy schedule. Specifies the order number for the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: First |
|
True |
Named |
False |
|
MonthlyDayOfWeek |
For monthly retention policy schedule. Specifies the day of the week when Veeam Backup for Microsoft 365 must apply the retention policy.
Default: Monday |
|
True |
Named |
False |
|
MonthlyTime |
For monthly retention policy schedule. Specifies the time of the day when Veeam Backup for Microsoft 365 must apply the retention policy. Default: 18:00:00 |
|
True |
Named |
False |
|
Name |
Specifies a name of the backup repository. The cmdlet will create a backup repository with this name. |
|
True |
Named |
False |
|
ObjectStorageEncryptionKey |
Specifies object storage encryption key. Veeam Backup for Microsoft 365 will encrypt data that is saved to this object storage repository.
Accepts the
To get this object, run the |
|
False |
Named |
False |
|
ObjectStorageRepository |
Specifies an object storage repository. The cmdlet will add this object storage repository.
Accepts the
To get this object, run the |
True |
Named |
False |
|
|
Path |
Specifies the full path to a directory on the backup proxy server where you want to store your backups. |
|
True |
Named |
False |
|
Proxy |
Specifies a backup proxy server. The cmdlet will map a new JET-based backup repository or object storage repository to this backup proxy server.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
ProxyPool |
Specifies a backup proxy pool. The cmdlet will map a new object storage repository to this backup proxy pool.
Accepts the
To get this object, run the |
False |
Named |
False |
|
|
RetentionFrequencyType |
Specifies retention policy schedule. Veeam Backup for Microsoft 365 will check a backup repository and will remove the outdated backups according to this schedule. You can set either of the following types of schedule:
Default: Daily |
|
True |
Named |
False |
|
RetentionPeriod |
Specifies the retention period in years. Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. You can set either of the following periods:
Default: Years3
Note: Apply the |
|
True |
Named |
False |
|
RetentionType |
Specifies a type of retention policy. You can set either of the following types:
Default: SnapshotBased |
|
False |
Named |
False |
|
SyncNow |
Defines that the cmdlet will start to synchronize cache between the object storage repository and the PersistentCache database on the PostgreSQL instance. Default: False |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBORepository object that contains settings of the Veeam Backup for Microsoft 365 repository.
Examples
Example 1: Adding Jet-Based Backup Repository with Default Retention Policy Period
|
This example shows how to add the External Data Storage backup repository to the
Perform the following steps:
|
Example 2: Adding Jet-Based Backup Repository with Yearly Retention Period [Policy Applied Daily]
|
This example shows how to add an External Data Storage backup repository to the The retention settings for the backup repository will be the following:
Perform the following steps:
|
Example 3: Adding Jet-Based Backup Repository with Yearly Retention Period [Policy Applied Monthly]
|
This example shows how to add the External Data Storage backup repository to the The retention settings for the backup repository will be the following:
Perform the following steps:
|
Example 4: Adding Jet-Based Backup Repository with Custom Retention period [Policy Applied Daily]
|
This example shows how to add the External Data Storage backup repository to the The retention settings for the backup repository will be the following:
Perform the following steps:
|
Example 5: Adding Jet-Based Backup Repository with Custom Retention period [Policy Applied Monthly]
|
This example shows how to add the External Data Storage backup repository to the The retention settings for the backup repository will be the following:
Perform the following steps:
|
Example 6: Adding Object Storage Repository
|
This example shows how to add Azure Blob Storage.
Perform the following steps:
|
Related Commands
Get-VBOProxyReturns backup proxy servers added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBOAzureBlobAccountReturns Microsoft Azure Blob Storage account credentials.Get-VBOEncryptionKeyReturns encryption keys.New-VBOAzureBlobConnectionSettingsDefines connection settings to Microsoft Azure Blob Storage.Get-VBOAzureBlobContainerReturns Microsoft Azure Blob containers.Get-VBOAzureBlobFolderReturns Microsoft Azure Blob folders.Add-VBOAzureBlobObjectStorageRepositoryAdds Azure Blob Storage to the Veeam Backup for Microsoft 365 infrastructure. In Veeam Backup for Microsoft 365 8, this cmdlet became deprecated. Use the New-VBOAzureBlobObjectStorageSettings, and Add-VBOAzureBlobRepository or Add-VBOAzureArchiveRepository cmdlets instead.