Stop-VEMDBPublishJob

Short Description

Unpublishes a MongoDB instance from the target server.

Product: Veeam Backup & Replication

Product Edition: Enterprise Plus, Veeam Universal License

Syntax

Stop-VEMDBPublishJob -PublishJob <VEMDBInstancePublish> [-Force] [<CommonParameters>]

Detailed Description

This cmdlet unpublishes a MongoDB instance from the target server.

Note

Publishing sessions will not stop automatically if you close the PowerShell console. To stop a publishing session, you must run the Stop-VEMDBPublishJob cmdlet.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Force

Defines that the cmdlet will show no prompt before executing the command.

SwitchParameter

False

Named

False

PublishJob

Specifies the publishing process for a MongoDB instance. The cmdlet will stop the process and unpublish the instance from the target MongoDB server.

Accepts the VEMDBInstancePublish object. To get this object, run the Get-VEMDBPublishJobReturns active publishing sessions for backed-up MongoDB instances. cmdlet.

VEMDBInstancePublish

True

Named

True (ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.

Examples

Stopping Publishing Process for a MongoDB Instance

This example shows how to unpublish a MongoDB instance.

$publish = Get-VEMDBPublishjob -SourceInstance "mongodb01:27017"

Stop-VEMDBPublishJob -PublishJob $publish

Perform the following steps:

  1. Run the Get-VEMDBPublishJobReturns active publishing sessions for backed-up MongoDB instances. cmdlet. Specify the SourceInstance parameter value. Save the result to the $publish variable.
  2. Run the Stop-VEMDBPublishJob cmdlet. Set the $publish variable as the PublishJob parameter value.

Get-VEMDBPublishJobReturns active publishing sessions for backed-up MongoDB instances.

Page updated 2026-08-20

Page content applies to build 13.1.1.18