ts3-server-updater/README.md

46 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2019-02-01 19:48:26 +01:00
# TeamSpeak3 - Updater
2019-02-01 19:46:17 +01:00
I use teamspeak server as a service. If you want to have the same setting (i.e when you want stop your teamspeak server you can write:
```
systemctl stop teamspeak
```
If you have not got it. You can easly copy like this:
```
git clone https://github.com/linux923344/ts3-server-updater.git
cd ts3-server-updater
sudo cp teamspeak.service /usr/lib/systemd/system/
sudo systemctl daemon-reload
```
2019-02-01 19:48:26 +01:00
## Instalation teamspeak.service
2019-02-01 19:46:17 +01:00
In the file **teamspeak.service** the default localization is **/opt/teamspeak/** and the default user is **teamspeak**. You can change it for your settings of course. Also in the when you have different localization you **MUST** change it in the ```update``` in the variable ``ts3local``.
Now you have ```systemctl``` for stop or start your service.
2019-02-01 19:48:26 +01:00
## Updating...
2019-02-01 19:46:17 +01:00
If you did not commit my repo, you should do it now.
```
git clone https://github.com/linux923344/ts3-server-updater.git
cd ts3-server-updater
```
When you want to run your updater. Check remove in variable link in the file update to newer version. You can check it on the website: https://www.teamspeak.com/en/downloads/#server
```
./update
```
The update will be do a backup. The file ``backup-remove`` and ``backup`` I use it for cron ``crontab -e`` !
```
#BACKUP EVERYDAY AT 5AM
0 5 * * * /opt/backup
#BACKUP EVERY SUNDAY AT 6AM AND ALSO STAY 2 OF THEM
0 6 * * SUN /opt/backup-remove
```
2020-03-05 22:49:57 +01:00
If You wanna contact with me write to me on private message or write to y0rune@aol.com