PowerShell script exchange
Post Reply
Navneet99
Novice
Posts: 6
Liked: never
Joined: Jul 14, 2023 12:00 pm
Contact:

Need script to Start the Specific Backup Job

Post by Navneet99 »

Hi,

I am looking for the PS script which can start the Backup job.
As Veeam scheduler only allow to run an incremental backup Once a day, and my requirement is to run the same Job "FILES to TAPE" for incremental backup twice a day. So if I can start the job from the command prompt without connecting the console it will help a lot.
I search the forum and found the below code but it is not working. If anybody have tested script please share.

$job = Get-VBOJob -Name "HANA-PRD to TAPE"
Start-VBOJob -Job $job
Above code not working in my Windows Powershell enviroment.
oleg.feoktistov
Veeam Software
Posts: 1922
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Need script to Start the Specific Backup Job

Post by oleg.feoktistov »

Hi,

Is it about VBR or VBO product? As per your description, I'm assuming you're talking about VBR, but cmdlets have VBO prefixes, so need to clarify.

Best regards,
Oleg
Navneet99
Novice
Posts: 6
Liked: never
Joined: Jul 14, 2023 12:00 pm
Contact:

Re: Need script to Start the Specific Backup Job

Post by Navneet99 »

Hi Oleg,

Its related to VBR. version 12
oleg.feoktistov
Veeam Software
Posts: 1922
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Need script to Start the Specific Backup Job

Post by oleg.feoktistov »

Then it should be the cmdlets with VBR prefix:

Code: Select all

$job = Get-VBRJob -Name "HANA-PRD to TAPE"
Start-VBRJob -Job $job
Navneet99
Novice
Posts: 6
Liked: never
Joined: Jul 14, 2023 12:00 pm
Contact:

Re: Need script to Start the Specific Backup Job

Post by Navneet99 »

Dear Oleg,

Thanks for helping. It works.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests