Add-VBORepository
Short Description
Adds a JET-based backup repository or object storage repository to the Veeam Backup for Microsoft 365 infrastructure.
Syntax
This cmdlet provides parameter sets that allow you to:
- Add a JET-based backup repository with the default retention policy period.
Add-VBORepository -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>] |
- Add a JET-based backup repository with the retention period set to years. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType> -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>] |
- Add a JET-based backup repository with the retention period set to years. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-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>] |
- Add a JET-based backup repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-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>] |
- Add a JET-based backup repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-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>] |
- Add object storage repository with the default retention policy period.
Add-VBORepository -ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>][-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>] |
- Add object storage repository. The retention period set to years and retention policy applied daily.
Add-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType> -ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>] [-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>] [-Force] [<CommonParameters>] |
- Add object storage repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32> -RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType> -ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <VBOEncryptionKey>][-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>][-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>][-Force] [<CommonParameters>] |
- Add object storage repository. The retention period set to years and retention policy applied monthly.
Add-VBORepository -RetentionPeriod <VBORetentionPeriod> -RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> -ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <VBOEncryptionKey>][-SyncNow] [-IgnoreProxyPoolApplianceAccessValidation] -Path <String> [-Proxy <VBOProxy>][-ProxyPool <VBOProxyPool>] -Name <String> [-Description <String>] [-RetentionType <VBORetentionType>][-Force] [<CommonParameters>] |
- Add object storage repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-VBORepository -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <Int32> -RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> -ObjectStorageRepository <VBOObjectStorageRepository> [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-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 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 |
---|---|---|---|---|---|
Path | Specifies the full path to a directory on the backup proxy server where you want to store your backups. | String | 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 VBOProxy object. To get this object, run the Get-VBOProxy cmdlet. | 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 VBOProxyPool object. To get this object, run the Get-VBOProxyPool cmdlet. | False | Named | False |
Name | Specifies a name of the backup repository. The cmdlet will create a backup repository with this name. | String | 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. | String | False | Named | False |
RetentionType | Specifies a type of retention policy. You can set either of the following types:
Default: SnapshotBased | VBORetentionType | 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 | SwitchParameter | False | 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 CustomRetentionPeriodType parameter to set the retention period in months or days. | VBORetentionPeriod | True | 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 | VBORetentionType | 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 | TimeSpan | 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 | VBODailyType | True | Named | False |
ObjectStorageRepository | Specifies object storage repository. The cmdlet will add this object storage repository. | Accepts the VBOObjectStorageRepository object. To get this object, run the Get-VBOObjectStorageRepository cmdlet. | True | Named | False |
ObjectStorageEncryptionKey | Specifies object storage encryption key. Veeam Backup for Microsoft 365 will encrypt data that is saved to object storage. | Accepts the VBOEncryptionKey object. To get this object, run the Get-VBOEncryptionKey cmdlet. | False | Named | False |
SyncNow | Defines that the cmdlet will start to synchronize cache between object storage repository and the PersistentCache database on the PostgreSQL instance. Default: False | SwitchParameter | 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 | SwitchParameter | False | 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 | TimeSpan | True | 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 | VBOMonthlyDayNumber | 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 | DayOfWeek | 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 CustomRetentionPeriod parameter to specify the number of days or the number of months. | VBORetentionPeriodType | True | Named | False |
CustomRetentionPeriod | For the CustomRetentionPeriodType option. Specifies the retention period to keep data on a backup repository. The retention period is defined according to the CustomRetentionPeriod settings:
Veeam Backup for Microsoft 365 will remove items from a backup repository once this period is passed. | Int32 | True | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
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 support.north.local backup proxy server. The retention type is set to snapshot-based.
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 d96f55a4-d15d-410b-b0f0-d51d17ccdab6 backup proxy server. 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 support.south.local backup proxy server. 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 d96f55a4-d15d-410b-b0f0-d51d17ccdab6 backup proxy server. 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 support.west.local backup proxy server. 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