PowerShell script exchange
Post Reply
rura_at_tivoli
Influencer
Posts: 10
Liked: 1 time
Joined: Oct 09, 2018 11:55 am
Contact:

Issues starting a Backup Copy job

Post by rura_at_tivoli »

I'm trying to schedule our Backup Copy jobs.
But using the command:

Code: Select all

Start-VBRJob -Job "Backup Copy cluster 2" -RunAsync
doesn't start the job.
The job is enabled and idle.
The odd thing is that if the job is disabled, then it starts but quickly stops with a warning saying the job is disabled.
The command above works fine on a regular backup job.

Is there a setting or something in my copy jobs that prevents powershell from starting them?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Issues starting a Backup Copy job

Post by veremin »

The backup copy job is continuous job, which means it's always running. If you want to execute Sync now option, then, use Sync-VBRBackupCopyJob. Thanks!
rura_at_tivoli
Influencer
Posts: 10
Liked: 1 time
Joined: Oct 09, 2018 11:55 am
Contact:

Re: Issues starting a Backup Copy job

Post by rura_at_tivoli »

I missed that command.
Thank you.

The description for Start-VBRJob is a little misleading then:
Start-VBRJob
Short Description
Starts backup, replication or copy job.
Even the first example includes a copy job:
Example 1
This command starts the jobs named "WebApplications Server Backup" and "Fileserver Copy Job". The job is obtained with Get-VBRJob and piped down.
Get-VBRJob -Name "WebApplications Server Backup", "Fileserver Copy Job" | Start-VBRJob
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Issues starting a Backup Copy job

Post by veremin »

Start-VBRJob can be used to with backup copy job, but only to start active full backup via -FullBackup switch. Otherwise, you will need to utilize Sync-VBRBackupCopyJob cmdlet.

As to the examples given, Fileserver Copy Job refers to File Copy Job, not Backup Copy one.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests