View Full Version : looking for backup tool
is there a tool that will backup usernames? or maybe just do regular backups of the dbs?
Just copy the server.dbs to your backup drive.
You can handle this at linux via cronjobs and on windows via "Windows Tasks" ..
P.S.: Gratz to the 1337'th thread in this board ;)
hah nice...
ok ive never really messed with cronjobs is it possible to have a weekly backup set to backup to a ftp server?
maxi1990
10-12-2008, 21:08
what kind of operating system do you run?
what kind of operating system do you run?
ts is hosted on linux.. CentOS 5
maxi1990
14-12-2008, 17:52
Try this one:
#!/bin/sh
#
# TeamSpeak Server Backup Script v1.1b
# Copyright (C) 2006 Bastian Schaar, Christian Müller
# http://www.teamspeak-einstieg.de
#
# ================= Konfiguration =================
# Deletelog bestimmt ob das Server-Log nach dem Backup
# geleert werden soll. 1 = ja, 0 = nein
DELETELOG=0
# Backuphost ist der Rechner auf den du deine Backups kopieren
# willst. Muß ein Domain-Name oder IP-Adresse sein
BACKUPHOST=
# Kontrollport des FTP-Servers auf dem Backuphost.
# Manche Leute benutzen einen speziellen FTP-Server fuer Backups
# Standardport ist 21
PORT=21
# Die Benutzerdaten fuer den Backup-FTP. Selbstredend :)
USER=
PASS=
# Das Ziel-Verzeichnis auf dem FTP-Server
# Ohne abschliessenden /
FTPPTATH=/
# Der Pfad zu deinem Teamspeak-Server. Muss absolut sein.
# Ohne abschliessenden /
PATHTOTSS=/home/ts
# ============== Ende der Konfiguration ==============
# Name fuer die Backupdatei bestimmen aus aktuellem Datum
ARCHIVENAME=`date +"backup_vip_%F_%H_%M.tar.gz"`
# Die Dateien packen und per ncftpput auf den Backupserver
# uebertragen
tar cfpz - $PATHTOTSS/server.ini \
$PATHTOTSS/server.dbs \
$PATHTOTSS/teamspeak2-server_startscript \
| ncftpput -c -u $USER -p $PASS -P $PORT $BACKUPHOST $FTPPATH/$ARCHIVENAME
if [ "$DELETELOG" = "1" ]; then
echo "">$PATHTOTSS/server.log
fi
# ----------------------------------------
crazyandy
17-12-2008, 15:57
Does the above script restart the TS server?
Katana*GFR*
17-12-2008, 17:18
Is a english translation available for this script? :D looks nice!
maxi1990
17-12-2008, 23:31
Does the above script restart the TS server?
No. Is there any need to restart the server?
Is a english translation available for this script? :D looks nice!
If I find some time I'll translate it into adequate englisch :p
Katana*GFR*
18-12-2008, 00:07
cheers, i know a bit of german, but translating it isn't my thing... Im bound to make errors then.
crazyandy
19-12-2008, 21:02
No there is no need to restart the server, just wondering what the startscript is called for.
And thanks about the translation, I can have a good guess what each part does, but no idea on german.
Cheers, Andy
maxi1990
20-12-2008, 12:53
#!/bin/sh
#
# TeamSpeak Server Backup Script v1.1b
# Copyright (C) 2006 Bastian Schaar, Christian Müller
# http://www.teamspeak-einstieg.de
#
# ================= Konfiguration =================
# Deletelog defines whether the serverlog is going to be cleared
# after backup. 1 = yes, 0 = no
DELETELOG=0
# Backuphost: insert host adress of the ftp server
# you want the backup to be saved. (domain name or IP adress)
BACKUPHOST=
# FTP server's port, normally 21
PORT=21
# login information to the ftp server
USER=
PASS=
# target directory on the ftp server
# without a closing /
FTPPTATH=
# path to your teamspeak installation
# has to be absolute without closing /
PATHTOTSS=/home/ts
# ============== end of configuration ==============
# Name fuer die Backupdatei bestimmen aus aktuellem Datum
ARCHIVENAME=`date +"backup_vip_%F_%H_%M.tar.gz"`
# Die Dateien packen und per ncftpput auf den Backupserver
# uebertragen
tar cfpz - $PATHTOTSS/server.ini \
$PATHTOTSS/server.dbs \
$PATHTOTSS/teamspeak2-server_startscript \
| ncftpput -c -u $USER -p $PASS -P $PORT $BACKUPHOST $FTPPATH/$ARCHIVENAME
if [ "$DELETELOG" = "1" ]; then
echo "">$PATHTOTSS/server.log
fi
# ----------------------------------------
Just tell me if you want the main-code comments also to be translated ;)
crazyandy
20-12-2008, 14:31
Thanks very much maxi for translating this, makes things alot clearer now.
I dont think the main code needs translating as most of it makes sense to me now anyway.
Maybe Katana would like it translated, and maybe for others.
One last wee thing. If I was to put the path to a folder in were the files to be backed up are, would this work. Basicly just to backup the whole TS folder.
Thanks
Andy
Katana*GFR*
20-12-2008, 17:50
I got it maxi, cheers.
Saves me alot of error work :D Like i said, i know German pretty well, but it's just a safety to have it translated.
Cheers for the work, im gonna put it up on my server.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.