Forum

Results 1 to 15 of 50

Hybrid View

  1. #1
    Join Date
    July 2002
    Location
    Germany
    Posts
    2,192

    Snapshot helper scripts

    Hello there,

    What are snapshots?

    They are a way to create an "image" of some virtualservers settings.
    They contain all the permissions, users, channels and server settings. The only thing they
    do not contain is the files upload to the server (since that could be too much data ).

    They are useful as a backup, or when you want to migrate your nicely configured server
    to some new location. Also they can be used to provide an "example setup" that can be
    imported anywhere and then changed from there.

    What can I find here?

    The serverquery has two commands, serversnapshotcreate and serversnapshotdeploy that can be used to obtain and to deploy a snapshot. The "problem" is you need to copy&paste the (usually pretty long) output of serversnapshotcreate and paste that as parameter to serversnapshotdeploy.

    To make this process easier, I wrote two (bash) scripts. The pullsnapshot.sh script will retrieve a snapshot from the server that you specify, for example like this:
    Code:
    ./pullsnapshot.sh serveradmin 123213123ggadsa213 voice.teamspeak-systems.de 10011 public_server_snapshot.txt 1
    The first three parameters (username, password and host) are required, the last three are optional, the usage is:
    Code:
    Usage: ./pullsnapshot.sh username password host [query_port=10011] [output_file=snapshot.txt] [virtual server ID=1]
    The putsnapshot.sh is very similar, the usage is the same, except that the file is now the input_file.

    Hopefully somebody finds this useful
    Attached Files Attached Files
    Last edited by dante696; March 30th, 2016 at 09:40 AM.

  2. #2
    Join Date
    May 2006
    Location
    California
    Posts
    27
    Have these been updated for use with RC1?

  3. #3
    Join Date
    June 2008
    Posts
    18,151
    They work with beta1 up to rc1 server yes. There was only a typo in on of these files.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  4. #4
    Join Date
    June 2011
    Posts
    1
    Hello Peter,

    I have 2 ts3 servers running on 2 virtual private servers.

    On the server A I have a lot of channels and settings and i want to copy this to the server B on a different VPS.

    How can I copy all the settings from server a to server b?

    I don't know how to use your script.

    Can you do a step by step for me?

    Regards.

    s4v4n4

  5. #5
    Join Date
    June 2008
    Posts
    18,151
    An example is given above :-/

    Use the console on linux to start that script with parameters or use cygwin on a windows based machine.

    Start the pullsnapshot.sh with your paramters > now you ve got a txt file
    Start the pullsnapshot.sh with new parameters (new address or virtual server as an example) > snapshot got applied on your second server.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  6. #6
    Join Date
    November 2010
    Location
    Germany
    Posts
    42
    Script doesn't work for me.

    Server version is rc1

    console always says: target file already exists

    but of course there is not a .txt file in the directory.
    there is just an file with the VServer ID i've given as parameter in the dirctory, but this file doesn't have an extension.
    so in my case (I want to save sid= 8) the file's name is just "8".

    are you sure the script is 100% working?
    or do you have an idea how I can fix my problem?
    t i a

  7. #7
    Join Date
    June 2008
    Posts
    18,151
    Yes we are sure, that it works.
    Please show us your command, you use for that.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  8. #8
    Join Date
    November 2010
    Location
    Germany
    Posts
    42
    ok, I've made a screenshot of the console:


    and the second time I try the command, it says "file already exists"
    but I found the file in the directory, but it was just an empty .txt file

    btw: I use cygwin
    Last edited by rindorbrot; May 26th, 2012 at 12:52 PM.

  9. #9
    Join Date
    January 2012
    Posts
    5

    Help me in "serversnapshotdeploy"

    Hello, I created a serversnapshop on a virtual server and am having a problem with the command "serversnapshotdeploy" to put this serversnapshot another virtual server. I read the manual query server and I'm doing it right. I say:

    login serveradmin ******
    use sid=9
    serversnapshotdeploy hash=LoKCPWG2aAUxV6P2tEB8FMJEiYs=|virtualserver_un ique_identifier=uNSuJd2U62THLitdlDn0QOuZQnE=
    And:

    error id=516 msg=invalid\sclient\stype

    (I don t have access to host, only server query)
    I would like to know how to solve it (Sorry for bad english and if you are violating some rule of the forum)

    Tanks
    Last edited by tmalek; January 20th, 2012 at 10:58 AM.

  10. #10
    Join Date
    June 2008
    Location
    -
    Posts
    252
    This sounds like a snapshot from an older serverversion.
    If so please try to make a new snapshot with the new serverversion and deploy it again, to make it easier to catch the problem.

  11. #11
    Join Date
    January 2010
    Location
    Germany
    Posts
    10
    I have disabled the mysql master-master replication and I still get the same error when trying to restore a snapshot.

    error id=512 msg=invalid\sclientID

    The error really only seems to occur when a token was used so that a client was saved on the server's db. Restoring a "blank" server works fine.

  12. #12
    Join Date
    April 2011
    Posts
    19

    Backup Virtual Server

    There is the possibility of backing up a virtual server? If so, how?

    *** Thread Merged ***
    Last edited by florian_fr40; February 5th, 2012 at 07:24 AM.

  13. #13
    Join Date
    February 2012
    Posts
    1

    Exclamation serversnapshotdeploy giving me errors on the server... Need to move server!

    I am trying to move one teamspeak server to another host, and want to keep everything essentially the same. In my searches, I located the information on using serversnapshotcreate to create a hash to use to import using serversnapshotdeploy on the target new server. However, when I tried to deploy the snapshot, the server gives me the error invalid parameter size, and just hangs forever.

    I really need to move this server to the new host as soon as possible. Please help!

  14. #14
    Join Date
    May 2013
    Posts
    6

    Restore Teamspeak Backup (TXT File)

    My old host gave me a TXT file to restore the backup on our server but I have no idea how to do so.

    Anyone have an idea/

    Thank You
    Last edited by dante696; July 15th, 2014 at 07:16 AM. Reason: merged

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating Helper tag Ect
    By Toasty1 in forum Permission System
    Replies: 0
    Last Post: January 2nd, 2016, 08:52 PM
  2. Using Snapshot scripts for daily backup ?
    By Ahmed in forum Server Support
    Replies: 9
    Last Post: February 11th, 2015, 11:50 AM

Posting Permissions

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