Add-VBRMongoDBBackupJob
Short Description
Creates MongoDB backup policies.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Add-VBRMongoDBBackupJob [-Name <String>] [-Description <String>] -BackupObject <Object[]> [-SourceBackup <CBackup>] -BackupRepository <CBackupRepository> [-RetentionPolicy <Int32>] [-StorageOptions <VBRStorageOptions>] [-SyntheticFullOptions <VBRFullBackupOptions>] [-ActiveFullOptions <VBRFullBackupOptions>] [-HealthCheckOptions <VBRHealthCheckOptions>] [-CompactFullOptions <VBRFullBackupOptions>] [-NotificationOptions <VBRNotificationOptions>] [-ProcessingOptions <VBRMongoDBProcessingOptions[]>] [-EnableSchedule] [-ScheduleOptions <VBRServerScheduleOptions>] [-GFSOptions <VBRComputerGFSOptions>] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates MongoDB Backup application backup policies.
For application backup policies, you must specify a container object with discovered application entities (protection groups, protection group child objects, replica sets) that you plan to back up and the target location for storing backups. To create application backup policies, do the following:
- Run one of the following cmdlets:
- Run the Get-VBRProtectionGroup cmdlet to get the protection group.
- Run the Get-VBRDiscoveredApplication cmdlet to get the replica set.
- Run the Get-VBRBackupRepository cmdlet to get the repository.
- Run the Add-VBRMongoDBBackupJob cmdlet to create application backup policy.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Name | Specifies the name that you want to assign to the application backup policy. | String | False | Named | False |
Description | Specifies the description of the application backup policy. | String | False | Named | False |
BackupObject | Specifies an array of discovered application entities: protection groups and replica sets. The cmdlet will add these entities to the application backup policy. | Accepts the Object[] object. To get this object, run the Get-VBRDiscoveredApplication cmdlet. | True | Named | False |
SourceBackup | Specifies a backup file. The cmdlet will download metadata of this backup file from the long-term repository. | Accepts the CBackup object. To get this object, run the Get-VBRBackup cmdlet. | False | Named | False |
BackupRepository | Specifies the target backup location for the application backup policy. | Accepts the CBackupRepository object. To get this object, run the Get-VBRBackupRepository cmdlet. | True | Named | False |
RetentionPolicy | Specifies the retention policy for backups created by MongoDB backup. Note: The retention policy specifies only the number of days. | Int32 | False | Named | False |
StorageOptions | Specifies storage options that you want to modify. | Accepts the VBRStorageOptions object. To create this object, run the New-VBRStorageOptions cmdlet. | False | Named | False |
SyntheticFullOptions | Creates a synthetic full backup schedule for MongoDB backup policies. | Accepts the VBRFullBackupOptions object. To get this object, run the New-VBRFullBackupOptions cmdlet. | False | Named | False |
ActiveFullOptions | Creates an active full backup schedule for MongoDB backup policies. | Accepts the VBRFullBackupOptions object. To get this object, run the New-VBRFullBackupOptions cmdlet. | False | Named | False |
HealthCheckOptions | Defines the health check schedule options. | Accepts the VBRHealthCheckOption object. To get this object, run the New-VBRHealthCheckOptions cmdlet. | False | Named | False |
CompactFullOptions | Specifies the schedule for the compact operation of full backups created by the MongoDB backup policy. Veeam Backup & Replication defragments and compacts a full backup per the schedule settings specified in the VBRFullBackupOptions object. | Accepts the VBRFullBackupOptions object. To get this object, run the New-VBRFullBackupOptions cmdlet. | False | Named | False |
NotificationOptions | Specifies notification settings for the application backup policy. | Accepts the VBRNotificationOptions object. To define this object, run the New-VBRNotificationOptions cmdlet. | False | Named | False |
ProcessingOptions | Specifies processing settings for the application backup policy. | Accepts the VBRMongoDBProcessingOptions object. To create this object, run the New-VBRMongoDBProcessingOptions cmdlet. | False | Named | False |
EnableSchedule | Enables the option to schedule the application backup policy to run on a regular basis. | SwitchParameter | False | Named | False |
ScheduleOptions | Specifies the settings for the application backup policy schedule. | Accepts the VBRServerScheduleOptions object. To create this object, run the New-VBRServerScheduleOptions cmdlet. | False | Named | False |
GFSOptions | Specifies GFS retention settings for MongoDB backup policy. | Accepts the VBRComputerGFSOptions object. To get this object, run the New-VBRComputerGFSOptions cmdlet. | False | Named | False |
HighPriority | Defines that Veeam Backup & Replication will prioritize this job higher than other similar jobs and will allocate resources to it first. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Creating a MongoDB Backup Policy for a Replica Set
This example shows how to set up a MongoDB backup policy for a single replica set.
Perform the following steps:
The Get-VBRDiscoveredApplication cmdlet will return an array of replica sets. Mind the ordinal number of the necessary replica set. An array starts with 0. In this example, it is the first replica set in the array.
|
Example 2. Creating a MongoDB Backup Policy for a Protection Group
This example shows how to set up a MongoDB backup policy for a protection group.
Perform the following steps:
The Get-VBRProtectionGroup cmdlet will return an array of protection groups. Mind the ordinal number of the necessary protection group. An array starts with 0. In this example, it is the first protection group in the array.
|
Related Commands