Results 1 to 15 of 26
Thread: snapshot helper scripts
-
08-02-2010, 15:47 #1
-= TeamSpeak Team =-
- Join Date
- Jul 2002
- Location
- Germany
- Posts
- 2,836
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:
The first three parameters (username, password and host) are required, the last three are optional, the usage is:Code:./pullsnapshot.sh serveradmin 123213123ggadsa213 voice.teamspeak-systems.de 10011 public_server_snapshot.txt 1
The putsnapshot.sh is very similar, the usage is the same, except that the file is now the input_file.Code:Usage: ./pullsnapshot.sh username password host [query_port=10011] [output_file=snapshot.txt] [virtual server ID=1]
Hopefully somebody finds this useful
Last edited by Peter; 06-07-2011 at 10:06.
-
31-05-2011, 22:28 #2
-= TeamSpeak User =-
- Join Date
- May 2006
- Location
- California
- Posts
- 27
Have these been updated for use with RC1?
-
01-06-2011, 09:37 #3
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,776
They work with beta1 up to rc1 server yes. There was only a typo in on of these files.
---------------------------------------------------------
Please don't send me private messages with support questions as long I or someone else from Teamspeak Staff asked for it.
Seriously > They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
16-06-2011, 04:25 #4
-= TeamSpeak User =-
- Join Date
- Jun 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
-
16-06-2011, 10:09 #5
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,776
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.---------------------------------------------------------
Please don't send me private messages with support questions as long I or someone else from Teamspeak Staff asked for it.
Seriously > They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
04-07-2011, 22:32 #6
-= TeamSpeak Lover =-
- Join Date
- Nov 2010
- Location
- Germany
- Posts
- 48
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
-
05-07-2011, 08:09 #7
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,776
Yes we are sure, that it works.
Please show us your command, you use for that.---------------------------------------------------------
Please don't send me private messages with support questions as long I or someone else from Teamspeak Staff asked for it.
Seriously > They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
05-07-2011, 18:15 #8
-= TeamSpeak Lover =-
- Join Date
- Nov 2010
- Location
- Germany
- Posts
- 48
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 cygwinLast edited by rindorbrot; 26-05-2012 at 12:52.
-
06-07-2011, 10:09 #9
-= TeamSpeak Team =-
- Join Date
- Jul 2002
- Location
- Germany
- Posts
- 2,836
Hey,
the output "nc: command not found" means you are missing the utility "netcat", which provides a binary called "nc"; which is used by the script. In short: install netcat.You think my answer is stupid ? Read This:
http://www.catb.org/~esr/faqs/smart-...ons.html#intro
In a world without fences and walls - who needs windows and gates ?
-
06-07-2011, 15:23 #10
-= TeamSpeak Lover =-
- Join Date
- Nov 2010
- Location
- Germany
- Posts
- 48
Thank you very much Peter!
now it worked. nice script
-
10-08-2011, 16:29 #11
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,042
Thats all that happens for me. Can't seem to get a snapshot even though if I do it myself it works just fine.Code:ts3@ubuntuVM:~$ ./pullsnapshot.sh serveradmin locDemoPw 127.0.0.1 Invalid number of lines from snapshot retrieval, aborting View snapshot.txt for details ts3@ubuntuVM:~$ cat snapshot.txt TS3 Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command. ts3@ubuntuVM:~$
Code:ts3@ubuntuVM:~$ telnet 127.0.0.1 10011 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. TS3 Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command. login serveradmin locDemoPw error id=0 msg=ok use 1 error id=0 msg=ok serversnapshotcreate permid=i_channel_needed_delete_power permvalue=75 permskip=0 permnegated=0|permid=i_client_needed_talk_power permvalue=10 permskip=0 permnegated=0|permid=i_ft_needed_file_download_power permvalue=70 permskip=0 permnegated=0|permid=i_ft_needed_file_browse_power permvalue=70 permskip=0 permnegated=0|end_flat|channel_client_flat end_flat|end_permissions error id=0 msg=ok quit error id=0 msg=ok Connection closed by foreign host. ts3@ubuntuVM:~$
Last edited by SilentStorm; 10-08-2011 at 16:39.
-
16-08-2011, 14:04 #12
-= TeamSpeak User =-
- Join Date
- Jul 2011
- Posts
- 23
with the 3.0.0 server i can still pull the snapshot, but importing it in another teamspeak server does not work:
worked with rc1.
bash putsnapshot.sh serveradmin PASSWORD localhost
Echo unable to apply the snapshot
This is what we got as answer to the commands use, login, serversnapshotdeploy, quit:
TS3
Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command.
error id=0 msg=ok
error id=0 msg=ok
error id=1538 msg=invalid\sparameter
error id=0 msg=ok
-
19-08-2011, 14:27 #13
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,776
error id=1538 msg=invalid\sparameter
This can happen, when your "hash=SoK2DVyGPI6hvQWozamFKUBkvWA=" is not correct or when another parameter is incorrect.
Hint: Don't forget to convert a snapshot from a linux server to windows---------------------------------------------------------
Please don't send me private messages with support questions as long I or someone else from Teamspeak Staff asked for it.
Seriously > They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
-
22-08-2011, 18:47 #14
-= TeamSpeak User =-
- Join Date
- Jul 2011
- Posts
- 23
whats the hash for anyway?
the hash is handled by the put/pullsnapshot script. the only parameters for both scripts that are needed are username/password/host
the others are optional.
-
02-09-2011, 14:46 #15
-= TeamSpeak Team =-
- Join Date
- Jun 2008
- Posts
- 7,776
I answered here
---------------------------------------------------------
Please don't send me private messages with support questions as long I or someone else from Teamspeak Staff asked for it.
Seriously > They belong into the forum and maybe other users have these questions/problems too.
TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
NPL License (Registration)
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
TS3-Quick-Gadget (without external scripts)
By JackCimberly in forum ToolsReplies: 11Last Post: 16-01-2011, 19:34 -
TS3 Scripts
By crazyandy in forum General QuestionsReplies: 1Last Post: 01-11-2009, 21:36 -
Pirated Scripts and License Transfers
By TheOldEngineer in forum [TeamSpeak 2] General QuestionsReplies: 5Last Post: 14-05-2007, 22:01 -
TeamSpeak Helper version 1.1
By nedko in forum [TeamSpeak 2] Addons & ScriptsReplies: 0Last Post: 27-04-2006, 10:43 -
Server rerset scripts to fight lockups
By FuZe in forum [TeamSpeak 2] Server SupportReplies: 3Last Post: 09-12-2002, 14:18


Reply With Quote