Update Teamspeak Server automatically

In this tutorial I will briefly explain how to update a Teamspeak server automatically. Automatic means in this context that you only have to enter your desired (new) version and the script does the rest by itself. What this script can’t do is automatically check if a new version is available.

To upgrade your Teamspeak server automatically I have written this short script. You just have to adjust the variables TSPATH and TSBACKUP to your setup. But it would make sense if you have configured a service for it, either systemd or initd. You can probably also use the Teamspeak scripts but I haven’t tested them.

Basically the script first downloads the tar.bz2 from Teamspeak, then makes a backup as tar and then unpacks the new version.

For example, a call can look like this:

1
bash update-teamspeak.sh 3.12.1

If you have questions, problems or found an error contact me.