I have a PowerShell script that I'm trying to use to identify running backup + backup copy jobs and identify which backup repositories are in use by those jobs.
I haven't been able to find a command or combination of commands to show this information, do you know if this is possible?
I can pull the current working jobs but I don't see any link from the running jobs to the location of the job's backup files.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jul 28, 2022 4:16 pm
- Full Name: Michael McGough
- Contact:
-
- Product Manager
- Posts: 14839
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: How to find repository in use?
Hello,
and welcome to the forums.
Once you have the running jobs Get-VBRjobOptions provides details, such as the job target (repository). So a combination of both should do what you need.
Best regards,
Hannes
and welcome to the forums.
Once you have the running jobs Get-VBRjobOptions provides details, such as the job target (repository). So a combination of both should do what you need.
Best regards,
Hannes
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jul 28, 2022 4:16 pm
- Full Name: Michael McGough
- Contact:
Re: How to find repository in use?
I think I'm missing something. I don't see the actual repository mentioned in the output of Get-VBRJobOptions. The closest thing I'm seeing is EpPolicyOptions.TargetShareType returns the repository's type but I don't see any identifiers of the actual repository in use.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: How to find repository in use?
Hi Michael,
The way to see a target repository would depend on job type you are using. For example, for agent management backup jobs:
For VMware or Hyper-V jobs:
Thanks,
Oleg
The way to see a target repository would depend on job type you are using. For example, for agent management backup jobs:
Code: Select all
$job = Get-VBRComputerBackupJob
$job.DestinationOptions.BackupRepository
Code: Select all
$job = Get-VBRJob
$job.GetTargetRepository()
Oleg
Who is online
Users browsing this forum: No registered users and 12 guests