• About me…
  • VMware
  • Powershell
  • DIY

ConfigMgr.nl

VMware, PowerShell, Automation, and more…

  • About me…
  • VMware
  • Powershell
  • DIY

Reporting on your Windows Server backup

18 januari 2021 Powershell Script Solutions No Comments

A while ago I blogged about backing up my virtual home lab for free with Veeam Backup & Replication 10. The server on which I installed this is a Windows Server 2016 server that is also used for backing up my home PCs and laptops. And on this server I use Windows Server Backup to create a backup of the server itself.

The only thing that was missing was proper reporting from Windows Server Backup. Veeam sends nice HTML email reports and I wanted to replicate this in Windows Server Backup.

First, I created a scheduled backup in Windows Server Backup. Then I created a scheduled task that was triggered by an Event from Windows Event Viewer.

This event with ID 14 is an informational event “The backup operation has completed.” The action on this scheduled task is Start a Program. And the program to be started is “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” with argument “C:\Users\Administrator\Send-Email.ps1”.

The script that I use gathers details about the backup job and reads the related events from the Event Viewer. It then uses this information to construct an HTML email and sends it to my mailbox.

The resulting email looks very similar to the email that is sent by Veeam.

Sent from Windows Server Backup
Sent from Veeam Backup & Replication

BTW I am not backing up the same data twice… The Windows Server Backup only backs up the System State and the system disk (for machine recovery purposes). The Veeam job backs up the MP3 files and home videos that are on the same machine.

BTW2 I also create a copy of the Veeam backup files to a cloud service here in the Netherlands. So with this, I implemented the 3-2-1 rule.

backupemailpowershellreportscript

Testing Script Runtime Service for vSphere - part 1

Testing Script Runtime Service for vSphere - part 2

Geef een antwoord Reactie annuleren

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

Recente berichten

  • Handy one-liners
  • The system has insufficient locker space for the image profile
  • Testing Script Runtime Service for vSphere – part 2
  • Reporting on your Windows Server backup
  • Testing Script Runtime Service for vSphere – part 1

Jeroen BurenFollow

Jeroen Buren
jeroen_burenJeroen Buren@jeroen_buren·
13 jul

VMware vSphere+ and VMware vSAN+ Now Generally Available https://dy.si/MRAKdy

Reply on Twitter 1547231373118754817Retweet on Twitter 1547231373118754817Like on Twitter 1547231373118754817Twitter 1547231373118754817
jeroen_burenJeroen Buren@jeroen_buren·
21 jun

Never stop learning... https://dy.si/bJt42

Reply on Twitter 1539159798926610432Retweet on Twitter 1539159798926610432Like on Twitter 1539159798926610432Twitter 1539159798926610432
Retweet on TwitterJeroen Buren Retweeted
brianmaddenBrian Madden@brianmadden·
26 mei

I just wrote an article on LinkedIn with my brutal and honest thoughts on the @Broadcom / @VMware deal. VMware is toast. It's sad, but there is no other way. https://www.linkedin.com/pulse/brian-maddens-brutal-unfiltered-thoughts-broadcom-vmware-brian-madden/

Reply on Twitter 1529925814203973632Retweet on Twitter 152992581420397363293Like on Twitter 1529925814203973632386Twitter 1529925814203973632
jeroen_burenJeroen Buren@jeroen_buren·
25 mei

A video tells more than a thousand words... https://dy.si/DBFdUR2

Reply on Twitter 1529336584557867010Retweet on Twitter 1529336584557867010Like on Twitter 1529336584557867010Twitter 1529336584557867010
jeroen_burenJeroen Buren@jeroen_buren·
1 mei

Fijn weer een seintje gekregen van @VattenfallNL : Uw termijnbedrag is op dit moment niet meer helemaal in lijn met uw verbruik. Ze bedoelen natuurlijk niet meer in lijn met hun tarieven…

Reply on Twitter 1520835622042222595Retweet on Twitter 1520835622042222595Like on Twitter 15208356220422225952Twitter 1520835622042222595
Load More...

Categorieën

Proudly powered by WordPress | Theme: Doo by ThemeVS.