PowerShell script exchange
Post Reply
at25345
Novice
Posts: 3
Liked: never
Joined: Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida
Contact:

Veeam B&R v5 PowerShell - BackupJob How getting folder

Post by at25345 »

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

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

Post by veremin »

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.
at25345
Novice
Posts: 3
Liked: never
Joined: Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida
Contact:

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

Post by at25345 »

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

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

Post by veremin » 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.
at25345
Novice
Posts: 3
Liked: never
Joined: Nov 08, 2013 6:36 am
Full Name: Takahiro Ashida
Contact:

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

Post by at25345 »

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

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

Post by veremin »

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

Who is online

Users browsing this forum: No registered users and 18 guests