Teamspeak 3 Server Automatic Backup Script

Tayyab Khan

Active Member
Joined
Feb 12, 2016
Messages
17
Reaction score
3
Points
93
Hi I Want To Know That there is any script which will automatically backup Ts3 server ??
if anyone have it plss reply !!!!
 

0x0539

Retired Staff
Contributor
Joined
Jan 30, 2016
Messages
1,334
Reaction score
1,146
Points
254
I was also trying to search for one but couldn't find any.

You can back-up manually using YaTQA or Psychokillers webinterface daily, It takes like ~30 seconds really.
But I know you'll prefer an automated script because.. lazy
Someone-Called-Me-Lazy-Yesterday-Funny-Meme-Image.jpeg
 

Agusanz

Active Member
Joined
Jul 18, 2015
Messages
239
Reaction score
148
Points
88
1- Type: sudo apt-get install zip
2- Type: nano BackUp.sh
3- Paste this code: https://gist.github.com/6105802772dcdc895c7e
4- Type: sudo chmod +x BackUp.sh
5- Type: crontab -e
and paste this:
*/60 * * * * /home/agusanz/./BackUp.sh > /dev/null
it will backup ur server files each 60 minutes.. you can use another thing to upload to anocher service like dropbox or just download the file.. your choice..

Change the cron directory since ur user it's not "agusanz"

Edit: Yeah i know, my bash script could not be posted for some reason.. i pasted into my gist..
Sorry about it
 
Last edited:

Agusanz

Active Member
Joined
Jul 18, 2015
Messages
239
Reaction score
148
Points
88
lol, that is still on my list^^.

I do have "advanced" backup scripts on my server.

I will rewrite them for the public and make them a bit nicer. I think I'll post them on the weekend or so :D
If I dont - remind me^^
Nice one..
i usually zip everything and upload it to GoogleDrive.. yea... lazy way
if you have many files then u need to work a little bit more on it :eek:
 

TrueStory

Member
Joined
Dec 14, 2015
Messages
32
Reaction score
40
Points
53
I wrote this a while back @Asphyxia may remember it ;) - you can adapt it to your needs :) - https://github.com/creativewild/gdrivebackup/wiki
it basically zips a folder and uploads it to your google drive, you can also create a cronjob for the script an run that on a daily basis.

Edit:
This was for Debian. For CentOS if you do the minimal install you can skip STEP 2
 
Top