I have written a script for running Atlassian Bitbucket Server Backup Client as a Windows task on my server. There are two main reasons/features why I created that script and why I want to share it.
-
Because my server is mostly off, I had to write a script that waits for the Bitbucket Server service to start because I want my server to run backup directly after booting.
But why I need a script here? Because afaik there is no possibility to wait for a service with a Windows task. -
Furthermore I wanted an E-Mail notification after doing the job. With the script I get an E-Mail when anything goes wrong or the backup fails because of some reasons, so I can manage the problem.
The script is written in PowerShell script language which I never used before. The reason for this is simple: I HATE batch files… ;) You can find all details and the download on the GitHub page
I hope it’s all correct and not too bad for my first script with PowerShell. Let me know what you think about it?! Are there any improvements?
Please have a look at the CHANGELOG.md when you want to see fruther changes.