Can anyone help me with a script to export the following details to csv. Really new to powershell and veeam too.
Job Name
Description
Amount of VM's
Job Size
VM's in Job
Scheduled
Restore Points to Keep
GFS Monthly Backups
GFS Yearly Backups
Retention Policy Type
Job Type
Target
Schedule Options
Many thanks
Nick
-
- Novice
- Posts: 8
- Liked: 3 times
- Joined: Jan 17, 2020 10:22 am
- Full Name: Nick
- Contact:
-
- Product Manager
- Posts: 5803
- Liked: 1217 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Veeam Export to CSV
Hi Nick, I'm sure somebody can help you with your initial post (post355384.html#p355384) however there are many examples on the forums already. A good example is the "Veeam Report": powershell-f26/my-veeam-report-v9-5-1-t47058-30.html
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Influencer
- Posts: 10
- Liked: never
- Joined: Nov 18, 2022 12:00 pm
- Full Name: Durai
- Contact:
Re: Veeam Export to CSV
Please try this below script whether it help.
Get-VBRBackupSession | ?{$_.CreationTime -ge (Get-Date).AddDays(-no of days required)} | Select JobName, JobType, CreationTime, endtime, result, state, @{Name="BackupSize";Expression={$_.BackupStats.BackupSize}} | Sort CreationTime | Export-CSV "D:\BackupJobs_MonthlyReport.csv"
Thanks
Duraisingam
Get-VBRBackupSession | ?{$_.CreationTime -ge (Get-Date).AddDays(-no of days required)} | Select JobName, JobType, CreationTime, endtime, result, state, @{Name="BackupSize";Expression={$_.BackupStats.BackupSize}} | Sort CreationTime | Export-CSV "D:\BackupJobs_MonthlyReport.csv"
Thanks
Duraisingam
Who is online
Users browsing this forum: No registered users and 21 guests