Veeam B&R v5 PowerShell - BackupJob How getting folder

PowerShell script exchange

Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby at25345 » Fri Nov 08, 2013 7:39 am

Hi.

I am sorry in awkward English.

I am going to get the folder path of a backup job using Powershell of Veeam Backup and Replication v5.
However, even if it uses which command let, the folder path of a backup job is not found.

Would you help, if there are those familiar?

Thank you. :)
at25345
Novice
 
Posts: 3
Liked: never
Joined: Fri Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida

Re: Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby v.Eremin » Fri Nov 08, 2013 8:05 am

Hi, Takahiro.

Nowadays the backup file directory can be gotten via the following script:

Code: Select all
Get-VBRBackup -name "Name of your backup" | Select-Object {$_.dirPath}


However, I’m not sure whether the said script should work in case of version 5. Actually, you’d better upgrade to the latest product version, since version 5 isn’t supported any longer. Let alone, the variety of improvements and fixes that has been implemented since that time.

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

Re: Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby at25345 » Mon Nov 11, 2013 12:53 am

Hi, Vladimir.

Thank you very much for the reply.

But regrettably the good result was not obtained.

The "InitialPassDir" object of Get-VBRJobOptions considered that I might have a folder name.

However, even if it changed various JOB setup, the value was empty and it was not able to see change to it.

Is "InitialPassDir" unfamiliar in what carries out what kind of role?
at25345
Novice
 
Posts: 3
Liked: never
Joined: Fri Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida

Re: Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby v.Eremin » Mon Nov 11, 2013 9:09 am 1 person likes this post

Since I don’t have access to v5 console, it’s rather hard to say what particular command should be used in order to get the path of backup repository. As an additional option, you can try the following script and see whether it makes any difference:

Code: Select all
$Job = Get-VBRJob -name "Name of backup job"
$Job.info.TargetDir


Anyway, what is the reason to use such an obsolete product version?

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

Re: Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby at25345 » Tue Nov 12, 2013 12:40 am

It is wonderful!

Difficulty was able to be safely overcome by your favor.
I can sleep slowly now. :)

Since there are various restrictions, such as an old related system, money, etc., it is unavoidable that this old version must be used.

Thank you very much.
at25345
Novice
 
Posts: 3
Liked: never
Joined: Fri Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida

Re: Veeam B&R v5 PowerShell - BackupJob How getting folder

Veeam Logoby v.Eremin » Tue Nov 12, 2013 8:48 am

Glad to hear that my input was helpful. As to usage of obsolete version, please be aware that version 5 isn't supported any longer, as it's more than two years old. In other words, should anything happen, you will be by your own.

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


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests