Set-VBRMongoDBBackupJob
Short Description
Modifies MongoDB backup policies.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRMongoDBBackupJob -Job <VBRMongoDBBackupJob> [-Name <String>] [-Description <String>] [-BackupObject <Object[]>] [-SourceBackup <CBackup>] [-BackupRepository <CBackupRepository>] [-RetentionPolicy <Int32>] [-ActiveFullOptions <VBRFullBackupOptions>] [-SyntheticFullOptions <VBRFullBackupOptions>] [-StorageOptions <VBRStorageOptions>] [-ProcessingOptions <VBRMongoDBProcessingOptions[]>] [-OplogProcessingOptions <VBRMongoDBOplogProcessingOptions[]>] [-CompactFullOptions <VBRFullBackupOptions>] [-HealthCheckOptions <VBRHealthCheckOptions>] [-EnableSchedule] [-ScheduleOptions <VBRServerScheduleOptions>] [-GFSOptions <VBRComputerGFSOptions>] [-EnableGFSRetention] [-HighPriority] [-NotificationOptions <VBRNotificationOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies MongoDB Backup application backup policies.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ActiveFullOptions |
Creates an active full backup schedule for MongoDB backup policies.
Accepts the |
|
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 |
|
False |
Named |
False |
|
BackupRepository |
Specifies the target backup location for the application backup policy.
Accepts the |
|
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
Accepts the |
|
False |
Named |
False |
|
Description |
Specifies the description of the application backup policy. |
|
False |
Named |
False |
|
EnableGFSRetention |
Enables GFS retention for MongoDB backup policies. |
|
False |
Named |
False |
|
EnableSchedule |
Enables the option to schedule the application backup policy to run on a regular basis. |
|
False |
Named |
False |
|
GFSOptions |
Specifies GFS retention settings for MongoDB backup policies.
Accepts the |
|
False |
Named |
False |
|
HealthCheckOptions |
Defines the health check schedule options.
Accepts the |
|
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. |
|
False |
Named |
False |
|
Job |
Specifies the MongoDB backup policy that you want to modify.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Name |
Specifies the name that you want to assign to the application backup policy. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification settings for the application backup policy.
Accepts the |
False |
Named |
False |
|
|
OplogProcessingOptions |
Specifies oplog processing settings for the application backup policy.
Accepts the |
False |
Named |
False |
|
|
ProcessingOptions |
Specifies processing settings for the application backup policy.
Accepts the |
False |
Named |
False |
|
|
RetentionPolicy |
Specifies the retention policy for backups created by MongoDB Backup. Note: The retention policy specifies only the number of days. |
|
False |
Named |
False |
|
ScheduleOptions |
Specifies the schedule for the configuration backup policy.
Accepts the |
|
False |
Named |
False |
|
SourceBackup |
Specifies a backup file. The cmdlet will download metadata of this backup file from the long-term repository.
Accepts the |
|
False |
Named |
False |
|
StorageOptions |
Specifies storage options that you want to modify.
Accepts the |
|
False |
Named |
False |
|
SyntheticFullOptions |
Creates a synthetic full backup schedule for MongoDB backup policies.
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRMongoDBBackupJob object that contains settings of backup copy jobs.
Examples
Example 1. Applying New Storage Settings to MongoDB Backup Policy
|
This example shows how to apply new storage settings to an existing MongoDB backup policy.
Perform the following steps:
|
Example 2. Applying New Retention Policy to MongoDB Backup Policy
|
This example shows how to modify an existing MongoDB backup policy. The policy will run with the following settings:
Perform the following steps:
|
Example 3. Change Existing Oplog Processing Options
|
This example shows how to change existing oplog processing and retention settings, and add them to an existing MongoDB oplog application backup policy.
Perform the following steps:
|
Related Commands
Get-VBRProtectionGroupReturns protection groups.Get-VBRApplicationBackupJobReturns application backup policies.Get-VBRDiscoveredApplicationReturns discovered applications from the computer.Get-VBRBackupRepositoryReturns a list of backup repositories.New-VBRFullBackupOptionsCreates active full backup schedule settings for Veeam Agent backup jobs.New-VBRHealthCheckOptionsDefines the health check schedule options.New-VBRStorageOptionsDefines storage optimization settings for backup jobs.New-VBRNotificationOptionsCreates new job notification options.New-VBRDatabaseProcessingOptionsCreates the database processing settings for application backup policies.New-VBRMongoDBOplogProcessingOptionsEnables operations log (oplog) processing options for MongoDB replica sets.Set-VBRMongoDBOplogProcessingOptionsModifies operations log (oplog) processing options for MongoDB replica sets.