HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

PowerShell script exchange

HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby BigGeorge » Wed Jan 09, 2013 4:26 pm

Hi all!

How I can retrieve the backup files created by one Job Session (.vbk, .vbr, etc)?
I've find the old v.5 command, but not in 6.5 ...

Thank you
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby v.Eremin » Wed Jan 09, 2013 5:02 pm 1 person likes this post

Am I completely wrong in assuming that you can meet your expectations by running simple Get-ChildItem method?

Syntax in this case should look like this:

Code: Select all
Get-ChildItem D:\Repository#1\Job#1

Note: The path is just an example, you’ll have to specify your own.

This method will list all the files located in the given folder. By adding extra commands you can retrieve only full backup-files(.vbk) or take only files created during the latest job run.

Should any additional help be needed, don’t hesitate to let me know.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby BigGeorge » Wed Jan 09, 2013 5:15 pm

Am I completely wrong in assuming that you can meet your expectations by running simple Get-ChildItem method?


Yes :)

Because I need to find the file related to a specific job session (example: I need to retrieve the .vb* file related to the yesterday job session).

I know that you suggest (and I use it), but it's not that I need ;)
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby v.Eremin » Wed Jan 09, 2013 8:22 pm

In fact, I’m still quite confused why this method inappropriate to you, since in the cited example by simple script modification you can catch the files created today, yesterday or whatever day you want.

Anyway, if you provide link to the old v.5 command, I’ll probably be able to fully understand your goals and assist you in scripting process as far as possible.

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

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby BigGeorge » Wed Jan 09, 2013 9:16 pm

Hi,

The command in v.5 was
Code: Select all
get-vpclastsessionextended
and the parameter was
Code: Select all
FileName

See this link: http://vpowercli.wordpress.com/2011/11/30/get-vpclastsessionextended-v5/

This is that I search in v.6

Thank you ;)
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby tsightler » Wed Jan 09, 2013 9:36 pm

Does it really have to be specific to a job session? It's pretty trivial to get a list of restore points for a backup and their associated files:

Code: Select all
(Get-VBRBackup -Name "Core Servers").GetStorages()


I'm sure there's a way to tie the session to the restore point, but I'm not sure why it would be required to simply know what files to copy.
tsightler
Veeam Software
 
Posts: 4767
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby BigGeorge » Wed Jan 09, 2013 10:07 pm

Yes!
I find that on a old Gostev post http://forums.veeam.com/viewtopic.php?f=2&t=5387&start=0 just few second ago :)

Thank you so much!
Giorgio
BigGeorge
Veeam ProPartner
 
Posts: 27
Liked: 4 times
Joined: Tue Jan 31, 2012 2:00 pm
Location: Italy
Full Name: Giorgio Colucci

Re: HowTo retrieve Backup Files from Veeam Jobs in v.6.5 ?

Veeam Logoby ThomasMc » Wed Jan 09, 2013 10:16 pm

Hi,

The command in v.5 was

Code: Select all
get-vpclastsessionextended

and the parameter was
Code: Select all
FileName


See this link: http://vpowercli.wordpress.com/2011/11/ ... tended-v5/

This is that I search in v.6

Thank you


I really should have commented that script better xD
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests