Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    December 2013
    Posts
    11

    bash script to backup ts3 settings

    Hey guys,

    I made a backup script for my teamspeak server and figured it might be useful for others. It uses the serversnapshotcreate command for the functionality. To learn more about this command and what it does please read this:
    https://support.teamspeakusa.com/ind...ld-be-aware-of

    My script is posted here:
    https://appus.org/files/ts3backup.tar.gz

    A few notes. The password is stored in plain text and written to the log file as such.. Ensure they are properly secured by setting the file permissions to 600.

    To install extract it to your ts3 user folder:
    /home/ts3user/ts3backup/

    set ownership:
    chown -R ts3user:ts3user

    set permissions:
    chmod 600 /home/ts3user/ts3backup/*
    chmod 600 /home/ts3user/ts3backup/log/*

    edit your password file:
    serveradmin

    Provide a list of ports that you will back up - each on their own line:
    server_port

    configure the script:
    TS3SERVER='hostname' #can be hostname or IP
    PORT='10011' #default port - change if necessary
    DIRPATH='/path/installed/to' #ex: /home/ts3user/ts3backup/

    Once done you can test it using this command:
    /home/ts3user/ts3backup/ts3backup >> /home/ts3user/ts3backup/log/output.log

    This runs the script and outputs the result into your log file for review.

    You can set up a cronjob to run it:
    0 5 * * 1 /home/ts3user/ts3backup/ts3backup >> /home/ts3user/ts3backup/log/output.log

    Hope you find it useful.
    -Matt
    Attached Files Attached Files
    Last edited by rommyappus; August 26th, 2015 at 11:18 AM. Reason: minor correction for consistency

  2. #2
    Join Date
    December 2013
    Posts
    11

    redundant

    Now that I look I see that this is somewhat redundant..

    http://forum.teamspeak.com/showthrea...helper-scripts

    Though I would not want to put the password in a cron path - it could easily be adapted to pull from a file instead.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Bash script to detect crash or server not running
    By Ryahn in forum Linux / FreeBSD
    Replies: 1
    Last Post: December 23rd, 2013, 07:48 AM
  2. Linux Install Bash script!
    By killerkeks in forum Linux / FreeBSD
    Replies: 3
    Last Post: January 12th, 2011, 08:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •