v7 Stop BCJ - Start File2Tape - StartBCJ

Everything about backing up to tape

v7 Stop BCJ - Start File2Tape - StartBCJ

Veeam Logoby Andreas Neufert » Tue Sep 02, 2014 1:46 pm

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
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: v7 Stop BCJ - Start File2Tape - StartBCJ

Veeam Logoby Andreas Neufert » Tue Sep 02, 2014 1:51 pm

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
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: v7 Stop BCJ - Start File2Tape - StartBCJ

Veeam Logoby Andreas Neufert » Tue Oct 14, 2014 8:06 am

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
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM


Return to Tape



Who is online

Users browsing this forum: No registered users and 11 guests