Skip to main content

Hi, Good evening.

I am analyzing different Veeam Backup & Replication instances and I would like take all parameters for every backup job present on every VB&R instances that I am analyzing.

I would like to know if is possible launch one powershell script  for retrieve these values for example: start time for every schedule job, servers involved, backup modality (full, incremental, reverse incremental, etc) aware setting if exist, etc.

Thanks in advance.

Best regards

Ricardo

Hi @Ricardo Mazzarello -

Welcome to the Community! Was gonna ask our Community managers to move your post to a more appropriate location, but it appears they already took care of that very thing (moved to the ‘YARA and Script Library’ group) 😊

I’m not aware of any such script myself, but maybe someone else can chime in with ideas….


@Ricardo Mazzarello You can start from Shawn Masterson script here: 

https://gist.github.com/smasterson/9141287

 

 


@SteveHeart 


Hi @Ricardo Mazzarello,

a starting point could be this script here. Let me know if you’re missing something specific and I then can have a look at it on one of my scripting Fridays 😉.

Cheers,

Steve


I just remembered a script from one of my SE colleagues: Veeam Porter (Porter is a wonderful beer style, that’s why). Not sure what needs to be changed to run it with the latest VBR release, but this script can also be inspiring.

 

Cheers,
Steve


Hi @Ricardo Mazzarello,
we can also grab the information from the VBR RestAPI. I can share a Python script that stores the job configuration in a json file. Just let me know if Python is an option for you.


Cheers,
Steve


@SteveHeart Hi, it might not have been option for Ricardo but would definitely be option for me 🙂.

Is there still any chance you could share that with me? At the moment I only want to know list of jobs which have reverse incremental job config but in the future I will need more options. Kind Regards

Vita


Hi ​@PTC,

I quickly created a Python script using one of my existing scripts to check for any Reverse Incremental Jobs present. Before running the script, you must use the Fernet script to create the encrypted password for the REST API call. After that, you can run the script with:

./reversi.py --vbrserver <your-vbr-server>

The reversi.py script uses the administrator account to get the Bearer token. This can be changed (Line 121).

The output looks like this. You’ll get notified if no backup jobs with backup mode 'Reverse Incremental' were found.

==== Backup Jobs (ReverseIncremental) ====
Name | Type | Backup Mode
------------------------+--------+-------------------
Demo Reverse Inremental | Backup | ReverseIncremental


I hope this helps.

Cheers,
Steve


Hello,

You will have what you want and much more here I think :

https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VBR