Discussions related to exporting backups to tape and backing up directly to tape.
Post Reply
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

v7 Stop BCJ - Start File2Tape - StartBCJ

Post by Andreas Neufert »

Wrote this code for a customer. Maybe helpful for others.

Code: Select all

#Input
$JobNameBCJ = "BCJ-Job"
$JobNameTape = "F2T-Job"

#Load Veeam PowerShell Snapin
Add-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue

#ReadOut BCJ Object
$CopyJob = Get-VBRJob -Name $JobNameBCJ

#Disable BCJ Scheduler
$CopyJob.DisableScheduler()

#Wait till BCJ is stopped
while ( -not( $CopyJob.IsStopped() ) ) { }

#Read out File2Tape Job Object
$TapeJob = Get-VBRTapeJob -Name $JobNameTape

#Start File2Tape Job
Start-VBRJob -Job $TapeJob

#Enable BCJ Scheduler again
$CopyJob.EnableScheduler()

#Finis
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: v7 Stop BCJ - Start File2Tape - StartBCJ

Post by Andreas Neufert »

If you want to schedule it with windows, you can find herean configuration example.

If you can not execute it, please check this entry.
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: v7 Stop BCJ - Start File2Tape - StartBCJ

Post by Andreas Neufert »

In some cases you want to add all files from the folder (not only the changed ones) on tape. For example if you set copy job to 7 (daily run) and then backup the whole chain (all 7 days) to tape.

Then use:

Code: Select all

Start-VBRJob -Job $TapeJob -FullBackup
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests