Get tape content via powershell

PowerShell script exchange

[MERGED] : List of Tape restore points by media pool

Veeam Logoby ekisner » Mon Jan 26, 2015 4:45 pm

My goal is to extend an existing powershell function, which provides me with the most recent replica, incremental, and full backup point for each VM.

I would like to also know the most recent backup point for a VM stored on my assorted media pools (incremental, weekly, and monthly). The specific values I will end up obtaining will be the backup file name, the tape it is stored on, and when it got on that tape.

After parsing the results into HTML, I've got an at-a-glance view of all of my most recent restore points for each VM, showing me the viability of each method of recovery.

To that effect, I started searching. It looks as though Find-VBRTapeCatalog would be the place to start, however I see that is deprecated with no mention of a new command to use in its place. To make matters worse, it throws an error when I run that command:
No files found in the backup set <UUID> where <UUID> is a nice long alphanumeric

Not really seeking help yet for that error, I have a pretty good idea of what needs to happen there (find the backup set, and remove it if it's harmless - which it probably is).

I'm using a backup-to-tape job.

Does anyone have any suggestions where to start? I'd love for my function to be good past version 8.
ekisner
Expert
 
Posts: 141
Liked: 31 times
Joined: Thu Jul 26, 2012 8:04 pm
Full Name: Erik Kisner

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Mon Jan 26, 2015 4:50 pm

If you don't happen to have Veeam ONE deployed, take a look at the scripts provided above and see whether they meet your expectations. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby ekisner » Mon Jan 26, 2015 5:06 pm

Thanks Vladimir, I did indeed see them. My question was moreso based on what command is replacing Find-VBRTapeCatalog?
ekisner
Expert
 
Posts: 141
Liked: 31 times
Joined: Thu Jul 26, 2012 8:04 pm
Full Name: Erik Kisner

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Tue Jan 27, 2015 9:36 am

Currently, there is no alternative to the said commandlet. It has deprecated label, because the tape PS model has been revised seriously in version 8 and some remnants of obsolete model have been marked as deprecated.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Tape backup information script

Veeam Logoby vash3g » Thu Jun 25, 2015 1:09 pm

I am trying to find the correct commands for a post backup script for one of my tape jobs. I created this job for archiving old user profiles to tape so this is just a bunch of zip and pst files to archive. I would like to get a report after it is run to provide me with the tape ID and file contents from that. There is only one tape for that media pool at any time. The file contents would be a huge boon for this.
vash3g
Novice
 
Posts: 3
Liked: never
Joined: Thu Jun 25, 2015 12:58 pm
Full Name: Stephen Colburn

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Thu Jun 25, 2015 2:19 pm

Check the script provided above and see whether it meets your expectations. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby vash3g » Thu Jun 25, 2015 2:58 pm

Apparently I have a backup set with no files in it and its throwing an error. How can I check to see what that job has an error with?
vash3g
Novice
 
Posts: 3
Liked: never
Joined: Thu Jun 25, 2015 12:58 pm
Full Name: Stephen Colburn

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Thu Jun 25, 2015 3:46 pm

Not sure whether I got your question, are you saying that you get an error when running the provided script against your backup server? What particular error you get?
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby vash3g » Thu Jun 25, 2015 4:36 pm

Find-VBRTapeCatalog : No files found in the backup set a298209f-760a-4fd4-b6ff-07cc5c153988
At line:1 char:26
+ foreach ($TapeCatalog in Find-VBRTapeCatalog)
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Find-VBRTapeCatalog], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Command.FindVBRTapeCatalog
vash3g
Novice
 
Posts: 3
Liked: never
Joined: Thu Jun 25, 2015 12:58 pm
Full Name: Stephen Colburn

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Fri Jun 26, 2015 9:26 am

You can find job with failed session, using the following commandlet:

Code: Select all
foreach ($Job in Get-VBRTapeJob)
{
if ((Get-VBRSession -Job $Job -Result Failed) -ne $Null){$Job.name}
}


However, what happens if you make the mentioned code silently continue if case it comes across an error by adding the corresponding parameter:
Code: Select all
Find-VBRTapeCatalog -ErrorAction SilentlyContinue


Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Find Restore points on tape

Veeam Logoby LeoKurz » Mon Aug 03, 2015 8:24 am

Hello,

I'm trying to find the restore point of a certain VM that can be found on tape. Any idea? VErsion 8 with Update 2

__Leo
LeoKurz
Veeam ProPartner
 
Posts: 22
Liked: 6 times
Joined: Wed Mar 16, 2011 8:36 am
Full Name: Leonhard Kurz

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Mon Aug 03, 2015 10:26 am

Hi, Leo,

Your post has been merged into existing discussion talking about similar matter.

By the way, don't you have a Veeam ONE deployed? If so, kindly, see the Tape Report which should answer your requirements.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : How to get list of files in "files to tape" sessi

Veeam Logoby ccatlett1984 » Mon Dec 21, 2015 2:48 pm

This relates to my other thread:
powershell-f26/post-job-script-need-to-delete-files-that-were-written-t31312.html

I haven't been able to find a cmdlet to pull the list of files that were backed up in a tape session.
ccatlett1984
Enthusiast
 
Posts: 83
Liked: 9 times
Joined: Thu Oct 31, 2013 5:11 pm
Full Name: Chris Catlett

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Mon Dec 21, 2015 3:19 pm

Check the answers provided above and see whether the script answers your requirements.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby aagrapart » Tue May 31, 2016 8:44 am

Hello,

Is there a Find-VBRTapeCatalog cmdlet substitution in the V9 version or is it planned in the v9.5 ?

If it's not planned, is it possible to access to the tape catalog to export it's content list ?

Thanks.
aagrapart
Service Provider
 
Posts: 4
Liked: never
Joined: Fri Jan 30, 2015 3:19 pm

PreviousNext

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 18 guests