none
DPM 2010 Cancel Jobs -Database Backup RRS feed

  • Question

  • Hi All,

    We have an Exchange 2010 Environment with DPM 2010 Backup Solution.

    I am facing issue to Cancel one of the Database Job. We have three mailbox servers and configured 8 database backup per server.

    If i try to cancel one database job, associated database backup jobs also cancelling.

    Please let me know, is there any DPM shell command to cancel particular job in DPM server.

    Regards

    Manoj

    Monday, April 23, 2012 2:18 PM

All replies

  • Hi there,

    it might be a better idea to create your protection groups with individual Exchange databases in each one. Although this would increase the number of protection groups you have, it would also enable you to stop protection or cancel the running job of an individual database instead of all them at once.

    Kevin

    Tuesday, May 1, 2012 11:34 AM
  • Hi Kevin,

    Thanks for your reply.

    But, is there any DPM Shell command is available to cancel the particular job.

    Regards

    Manoj

    Thursday, May 3, 2012 3:18 AM
  • Hi Manoj,

    You could use the DPM Shell command Stop-Job - see below for a description:

    NAME
        Stop-Job

    SYNOPSIS
        Stops a Windows PowerShell background job.


    SYNTAX
        Stop-Job [[-InstanceId] <Guid[]>] [-PassThru] [-Confirm] [-WhatIf] [<Common
        Parameters>]

        Stop-Job [-Job] <Job[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters
        >]

        Stop-Job [[-Name] <string[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonPara
        meters>]

        Stop-Job [-Id] <Int32[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameter
        s>]

        Stop-Job [-State {NotStarted | Running | Completed | Failed | Stopped | Blo
        cked}] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]


    DESCRIPTION
        The Stop-Job cmdlet stops Windows PowerShell background jobs that are in pr
        ogress. You can use this cmdlet to stop all jobs or stop selected jobs base
        d on their name, ID, instance ID, or state, or by passing a job object to S
        top-Job.

        You can use Stop-Job to stop jobs that were started by using Start-Job or t
        he AsJob parameter of Invoke-Command. When you stop a background job, Windo
        ws PowerShell completes all tasks that are pending in that job queue and th
        en ends the job. No new tasks are added to the queue after this command is
        submitted.

        This cmdlet does not delete background jobs. To delete a job, use Remove-Jo
        b.


    RELATED LINKS
        Online version: http://go.microsoft.com/fwlink/?LinkID=113413
        about_Jobs
        about_Job_Details
        about_Remote_Jobs
        Start-Job
        Get-Job
        Receive-Job
        Wait-Job
        Remove-Job
        Invoke-Command

    REMARKS
        To see the examples, type: "get-help Stop-Job -examples".
        For more information, type: "get-help Stop-Job -detailed".
        For technical information, type: "get-help Stop-Job -full".

    Within the DPM Shell, if you type Get-Command you will then see all of the available commands that are provided within the DPM Shell Module. For futher information on a particular command, simply type the name of the command put -? after it - e.g. Stop-Job -?

    Hope this helps!

    Kevin.

    Thursday, May 3, 2012 12:42 PM
  • You can't use Stop-Job cmdlet to stop DPM jobs.

    There is Stop-DPMJob cmdlet available in DPM 2012 SP1:

    NAME
        Stop-DPMJob

    SYNOPSIS
        Stops a running job.


    SYNTAX
        Stop-DPMJob [-Job] <Job[]> [-Confirm [<SwitchParameter>]] [-WhatIf
        [<SwitchParameter>]] [<CommonParameters>]

        Stop-DPMJob [-Task] <Task[]> [-Confirm [<SwitchParameter>]] [-WhatIf
        [<SwitchParameter>]] [<CommonParameters>]


    DESCRIPTION
        This cmdlet stops a running job.


    My DPM blog ystartsev.wordpress.com

    Friday, April 5, 2013 9:06 AM
    Moderator
  • Is there a way to Pause the tape job or disk job? and restart after couple of days?
    Thursday, January 2, 2014 3:46 PM