PowerShell script exchange
Post Reply
BigGeorge
Veeam ProPartner
Posts: 27
Liked: 4 times
Joined: Jan 31, 2012 2:00 pm
Full Name: Giorgio Colucci
Location: Italy
Contact:

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

Post by BigGeorge »

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
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin » 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.
BigGeorge
Veeam ProPartner
Posts: 27
Liked: 4 times
Joined: Jan 31, 2012 2:00 pm
Full Name: Giorgio Colucci
Location: Italy
Contact:

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

Post by BigGeorge »

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
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by veremin »

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.
BigGeorge
Veeam ProPartner
Posts: 27
Liked: 4 times
Joined: Jan 31, 2012 2:00 pm
Full Name: Giorgio Colucci
Location: Italy
Contact:

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

Post by BigGeorge »

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 ;)
Giorgio
tsightler
VP, Product Management
Posts: 6009
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

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

Post by tsightler »

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.
BigGeorge
Veeam ProPartner
Posts: 27
Liked: 4 times
Joined: Jan 31, 2012 2:00 pm
Full Name: Giorgio Colucci
Location: Italy
Contact:

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

Post by BigGeorge »

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

Thank you so much!
Giorgio
ThomasMc
Veteran
Posts: 293
Liked: 19 times
Joined: Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell
Contact:

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

Post by ThomasMc »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests