Is this share already protected?


Userlevel 5
Badge +2

Introduction

Over the past few months, I have had customers report over-consumption of VUL, when leveraging Veeam NAS backups.

Veeam NAS backup is licensed by the amount of protected source data. The protected data amount is rounded down to the nearest 500GB and consumes one VUL per 500GB (see the user guide for details).

The important licensing caveat is that if, for instance, a same share is protected by two different backup jobs, even though it is the same source data, its protected amount doubles (in this particular instance).

It easy to see how your VUL consumption can very quickly get out of control.

 

The purpose of that short post is to share a very small script that helps identify if a given share has been backed up multiple times.

Note: The script only analyzes the defined shares path and cannot detect any “share alias” set on the NAS device.

 

Script

The script lists all NAS backup jobs and combs through its protected shares, sort the data and generates an HTML and CSV report.

 

See the core of the script below:

# list all nas backup jobs

$jobs = Get-VBRJob | Where-Object {$_.JobType -eq 'NasBackup'};

 

# list all shares and associated job name in a table and build html report

$shares = @();

foreach($job in $jobs){

    foreach($share in $job.GetObjectsInJob()){

        $row = "" | Select-Object SharePath, JobName;

        $row.SharePath = $share.Name;

        $row.JobName = $job.Name;

        $shares += $row;

    }  

}

 

Below is an example of the generated HTML report:

 

Summary

Get the full script below (BR-FindDuplicateShareBackup.zip).

Keep in mind that NAS backup consumption, once a protected share duplicate is removed, is reevaluated automatically after 30 days.

If you are impatient or otherwise need to adjust license consumption quickly then follow the license revocation process.

I hope this will assist you when looking for these share backup duplicates. Happy reporting!


4 comments

Userlevel 7
Badge +17

Hmmm...interesting. Something which could be easily overlooked. Thanks for sharing @olivier.rossi 

Userlevel 7
Badge +20

It is definitely something overlooked easily with NAS shares and licensing for sure.  This is an interesting script and I am going to do some testing with it.  Thanks for sharing @olivier.rossi 

Userlevel 5
Badge +4

This is a keeper. I have a few accounts adopting NAS backups in a big way now, and I’m sure we will come across this.

Userlevel 7
Badge +6

Very cool, I don’t use NAS backup but that’s not to say I won’t, so my future self appreciates this!

Comment