PowerShell script exchange
Post Reply
rura_at_tivoli
Novice
Posts: 3
Liked: never
Joined: Oct 09, 2018 11:55 am
Contact:

Issues starting a Backup Copy job

Post by rura_at_tivoli » Aug 01, 2019 2:07 pm

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: 16666
Liked: 1390 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Issues starting a Backup Copy job

Post by veremin » Aug 01, 2019 2:39 pm

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
Novice
Posts: 3
Liked: never
Joined: Oct 09, 2018 11:55 am
Contact:

Re: Issues starting a Backup Copy job

Post by rura_at_tivoli » Aug 02, 2019 6:28 am

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: 16666
Liked: 1390 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Issues starting a Backup Copy job

Post by veremin » Aug 02, 2019 1:05 pm

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 6 guests