Add-VBORepository
Short Description
Adds backup repositories to Veeam Backup for Microsoft 365.
Syntax
This cmdlet provides parameter sets that allow you to:
- Add a backup repository with the default retention policy period.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> [-RetentionType <[VBORetentionType]>] [-Description <string>] [-Force <switchparameter>] [<CommonParameters>] |
- Add a backup repository with the retention period set to years. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -RetentionPeriod <[VBORetentionPeriod]> -RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType> [-RetentionType <[VBORetentionType]>] [-Description <string>] [-Force <switchparameter>] [<CommonParameters>] |
- Add a backup repository with the retention period set to years. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -RetentionPeriod <[VBORetentionPeriod]> -RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> [-RetentionType <[VBORetentionType]>] [-Description <string>] [-Force <switchparameter>] [<CommonParameters>] |
- Add a backup repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <int32> -RetentionFrequencyType <VBORetentionFrequencyType> -DailyTime <TimeSpan> -DailyType <VBODailyType> [-RetentionType <[VBORetentionType]>] [-Description <string>] [-Force <switchparameter>] [<CommonParameters>] |
- Add a backup repository with the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -CustomRetentionPeriodType <VBORetentionPeriodType> -CustomRetentionPeriod <int32> -RetentionFrequencyType <VBORetentionFrequencyType> -MonthlyTime <TimeSpan> -MonthlyDayNumber <VBOMonthlyDayNumber> -MonthlyDayOfWeek <DayOfWeek> [-RetentionType <[VBORetentionType]>] [-Description <string>] [-Force <switchparameter>] [<CommonParameters>] |
- Add a backup repository extended with an object storage repository.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -ObjectStorageRepository <VBOObjectStorageRepository> [-RetentionType {ItemLevel | SnapshotBased}] [-Description <string>][-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-Force] [-SyncNow] [<CommonParameters>] |
- Add a backup repository extended with an object storage repository. The retention period set to years and retention policy applied daily.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -RetentionPeriod {Year1 | Years2 | Years3 |Years5 | Years7 | Years10 | Years25 | KeepForever} -RetentionFrequencyType {Daily | Monthly} -DailyTime <timespan> -DailyType {Everyday | Workdays | Weekends | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}-ObjectStorageRepository <VBOObjectStorageRepository> [-RetentionType {ItemLevel | SnapshotBased}] [-Description <string>] [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-Force] [-SyncNow] [<CommonParameters>] |
- Add a backup repository extended with an object storage repository and the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy daily.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -CustomRetentionPeriodType {Months | Days} -CustomRetentionPeriod <int32> -RetentionFrequencyType {Daily | Monthly} -DailyTime <timespan> -DailyType {Everyday | Workdays | Weekends | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday} -ObjectStorageRepository <VBOObjectStorageRepository> [-RetentionType {ItemLevel | SnapshotBased}] [-Description <string>] [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-Force] [-SyncNow] [<CommonParameters>] |
- Add a backup repository extended with an object storage repository. The retention period set to years and retention policy applied monthly.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -RetentionPeriod {Year1 | Years2 | Years3 | Years5 | Years7 | Years10 | Years25 | KeepForever} -RetentionFrequencyType {Daily | Monthly} -MonthlyDayNumber {First | Second | Third | Fourth | Last} -MonthlyDayOfWeek {Sunday | Monday | Tuesday | Wednesday | Thursday |Friday | Saturday} -ObjectStorageRepository <VBOObjectStorageRepository> [-RetentionType {ItemLevel | SnapshotBased}] [-Description <string>] [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-Force][-SyncNow] [<CommonParameters>] |
- Add a backup repository extended with an object storage repository and the custom retention period. Veeam Backup for Microsoft 365 applies the retention policy monthly.
Add-VBORepository -Proxy <VBOProxy> -Name <string> -Path <string> -CustomRetentionPeriodType {Months | Days} CustomRetentionPeriod <int32> -RetentionFrequencyType {Daily | Monthly} -MonthlyDayNumber {First | Second | Third | Fourth | Last} -MonthlyDayOfWeek {Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} -ObjectStorageRepository <VBOObjectStorageRepository> [-RetentionType {ItemLevel | SnapshotBased}] [-Description <string>] [-ObjectStorageEncryptionKey <VBOEncryptionKey>] [-Force] [-SyncNow] [<CommonParameters>] |
Detailed Description
This cmdlet adds a backup repository to a Veeam Backup for Microsoft 365 infrastructure. A backup repository is a folder on a proxy server where Veeam Backup for Microsoft 365 keeps organization backups. 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 | Accept Wildcard Characters |
---|---|---|---|---|---|---|
Proxy | Specifies a backup proxy. The cmdlet will deploy a new repository on this proxy. | Accepts the VBOProxy object. To get this object, run the Get-VBOProxy cmdlet. | True | Named | False | False |
Name | Specifies a name of the backup repository. The cmdlet will deploy the repository with this name. | String | True | Named | False | False |
Description | Specifies a description of a 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 | False |
Path | Specifies the full path to the backup repository on the backup proxy server. | String | True | Named | False | 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 | False |
RetentionType | Specifies the type of retention policy. You can set either of the following types:
Default: SnapshotBased | VBORetentionFrequencyType | False | Named | False | False |
SyncNow | Defines that the cmdlet will start to synchronize cache located on object storage repositories. | SwitchParameter | False | Named | False | False |
CustomRetentionPeriodType | Specifies the 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 | 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 | 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 | VBORetentionFrequencyType | True | Named | False | 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 | 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 | 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 | 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 | 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 | False |
Force | Defines that the cmdlet will add a backup repository to Veeam Backup for Microsoft 365 infrastructure if this repository is assigned to the other backup proxy without notifying the user. | SwitchParameter | False | Named | False | False |
ObjectStorageRepository | Specifies object storage repository. The cmdlet will add this object storage repository to a backup repository. | Accepts the VBOObjectStorageRepository object. To get this object, run the Get-VBOObjectStorageRepository cmdlet. | True | Named | False | False |
ObjectStorageEncryptionKey | Specifies object storage encryption key. Veeam Backup for Microsoft 365 will encrypt data, that is moved to object storage. | Accepts the VBOEncryptionKey object. To get this object, run the Get-VBOEncryptionKey cmdlet. | False | Named | False | 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 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 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 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 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 Backup Repository with Custom Retention period [Policy Applied Monthly]
This example shows how to add a new backup repository with the following retention settings:
Perform the following steps:
|
Example 6. Expanding New Backup Repository with Object Storage Repository
This example shows how to expand a new backup repository with object storage repository.
Perform the following steps:
|
Related Commands