-
- Lurker
- Posts: 2
- Liked: 1 time
- Joined: Jul 22, 2015 6:51 pm
- Full Name: Mark Kirkbride
- Contact:
Weekly Active Full Backup and Size
I am trying to write a Powershell script that will give me a list of Jobname, Job/Backup size, and Day(s) that the active full backup is scheduled.
Basically what I'm after is to spread the jobs over the 7 days of the week to do the weekly full backups. We separate out our jobs by client so have well over 100 to look through.
Basically what I'm after is to spread the jobs over the 7 days of the week to do the weekly full backups. We separate out our jobs by client so have well over 100 to look through.
-
- Product Manager
- Posts: 20270
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Weekly Active Full Backup and Size
Try the following one-liner, it uses parts of different scripts available on our community (for instance, this one was quite useful):
Thanks.
Code: Select all
Get-VBRJob | select @{N="Job Name";E={$_.Name}}, @{N="Size";E={[math]::Round(((Get-VBRBackup -name ($_.Name)).GetStorages().Stats.BackupSize | Measure-Object -sum).Sum/1gb,1)}}, @{N="Full Backup Days";E={$_.BackupTargetOptions.FullBackupDays}}
-
- Lurker
- Posts: 2
- Liked: 1 time
- Joined: Jul 22, 2015 6:51 pm
- Full Name: Mark Kirkbride
- Contact:
Re: Weekly Active Full Backup and Size
Excellent. Thank you.
-
- Product Manager
- Posts: 20270
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Weekly Active Full Backup and Size
Should other assistance with scripting be needed, feel free to contact us. Thanks.
-
- Novice
- Posts: 3
- Liked: never
- Joined: Feb 01, 2012 2:30 pm
- Full Name: Kira
- Contact:
Re: Weekly Active Full Backup and Size
Great script, thank you! does this provide the raw/non-deduped backup size?
-
- Product Manager
- Posts: 20270
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Weekly Active Full Backup and Size
It's the size that backup file occupies on a repository. And data inside backup file is present in compressed/deduplicated state in most cases (as long as those options are enabled in job settings). Thanks.
-
- Enthusiast
- Posts: 39
- Liked: never
- Joined: Jan 13, 2012 8:08 am
- Contact:
Re: Weekly Active Full Backup and Size
Hello,
I need to get the usage of my backups as well but the above example gives me the SIZE column empty.
Seems the method GetStorages() doesn't exist. The resto of the informations are retrived correctly.
Something different with Veeam v9?
Thanks,
Simon
I need to get the usage of my backups as well but the above example gives me the SIZE column empty.
Seems the method GetStorages() doesn't exist. The resto of the informations are retrived correctly.
Something different with Veeam v9?
Thanks,
Simon
-
- Product Manager
- Posts: 20270
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Weekly Active Full Backup and Size
Use GetAllStorages() method instead:
Thanks.
Code: Select all
Get-VBRJob | select @{N="Job Name";E={$_.Name}}, @{N="Size";E={[math]::Round(((Get-VBRBackup -name ($_.Name)).GetStorages().Stats.BackupSize | Measure-Object -sum).Sum/1gb,1)}}, @{N="Full Backup Days";E={$_.BackupTargetOptions.FullBackupDays}}
-
- Enthusiast
- Posts: 39
- Liked: never
- Joined: Jan 13, 2012 8:08 am
- Contact:
Re: Weekly Active Full Backup and Size
Thanks!
Simon
Simon
-
- Product Manager
- Posts: 20270
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Weekly Active Full Backup and Size
You're welcome. Should other help be needed, don't hesitate to let us know. Thanks.
-
- Enthusiast
- Posts: 39
- Liked: never
- Joined: Jan 13, 2012 8:08 am
- Contact:
Who is online
Users browsing this forum: No registered users and 24 guests