Discussions related to exporting backups to tape and backing up directly to tape.
Andreas Neufert
VP, Product Management
Posts: 7081 Liked: 1511 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:
Post
by Andreas Neufert » Sep 02, 2014 1:46 pm
this post
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: 7081 Liked: 1511 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:
Post
by Andreas Neufert » Sep 02, 2014 1:51 pm
this post
If you want to schedule it with windows, you can find
here an configuration example.
If you can not execute it, please check
this entry.
Andreas Neufert
VP, Product Management
Posts: 7081 Liked: 1511 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:
Post
by Andreas Neufert » Oct 14, 2014 8:06 am
this post
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
Users browsing this forum: No registered users and 14 guests