Results 1 to 15 of 17
Thread: Help useing a few query commands
-
27-12-2009, 18:12 #1
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Omaha, Nebraska
- Posts
- 3
Help useing a few query commands
ok so i have a few questions i understand how to login and use server query along with some of the commands move kick ext. but i dont understand how to use
serversnapshotcreate
and serversnapshotdeploy
could some one please explain
also is there something better i can use to send server commands because when i use ts3's built in server query i have to create the command line and run it is there something more like ts2s remote admin client or something that all i have to do is login and use commands? thanks for the help guys
-
27-12-2009, 18:26 #2
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
Maybe you can use a remoteprogramm on which you can save scripts like ts3 queryadmin. You have to join TS3-Server to use ServerQueryAdmin. If you use only a telnet client you need no rights, only the serveradmin login and the queryport thats the different. I don't know, but i think there lots of remote telnet tools with scriptfunction. I'm also searching for it.
Please explain ^^
-
27-12-2009, 19:13 #3
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Omaha, Nebraska
- Posts
- 3
well
i mean how do you use those 2 commands
serversnapshotcreate
and serversnapshotdeploy
what would be the command line to properly use them and execute them so that i can back up my channels and restore them along with all permissions
i know you can use the command insted of just makeing a backup of the server db any ideas and mabe a screen shot
-
27-12-2009, 20:09 #4
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Europe
- Posts
- 184
From doc/ts3_serverquery_manual.pdf
As far as I understand it, the command serversnapshotcreate does not take any parameter. A unique hash identifier will be created when you use the serversnapshotcreate. The hash will be printed to the command line. You have to store this hash somewhere because you will need it for restoring the snapshot.SERVERSNAPSHOTCREATE
Displays a snapshot of the selected virtual server containing all settings, groups and known client identities.
The data from a server snapshot can be used to restore a virtual servers configuration, channels and permissions using the serversnapshotdeploy command.
Permissions:
b_virtualserver_snapshot_create
Syntax:
serversnapshotcreate
Example:
serversnapshotcreate
hash=bnTd2E1kNITHjJYRCFjgbKKO5P8=|virtualserver_un ique_identifier=zrPkjznB1tMnRwj01xx7RxXjqeY=
virtualserver_name=TeamSpeak\s]I[\sServer …
error id=0 msg=ok
SERVERSNAPSHOTDEPLOY
Restores the selected virtual servers configuration using the data from a previously created server snapshot.
Please note that the TeamSpeak 3 Server does NOT check for necessary permissions while deploying a snapshot so the command could be abused to gain additional privileges.
Permissions:
b_virtualserver_snapshot_deploy
Syntax:
serversnapshotdeploy virtualserver_snapshot
Example:
serversnapshotdeploy hash=bnTd2E1kNITHjJYRCFjgbKKO5P8=|virtualserver_un ique_identifier=zrPkjznB1tMnRwj01xx7RxXjq= … error id=0 msg=ok
For deploying, you have to use the hash of the snapshot that shall be deployed. Its usage is serversnapshotdeploy HASH.
If you do not know how to use a command, use
help command
as serverquery. You will receive a help descritption as answer to this serverquery.
-
27-12-2009, 20:31 #5
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
That's an amazing command, it saves channels also? Short discription you can copy and backup virtualservers?
Is that right or i understand that wrong?
-
27-12-2009, 20:38 #6
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Europe
- Posts
- 184
As far as I understand it:
Yes, you can make a backup of a server.
No, you cannot copy server configurations onto a different server, i.e. you cannot duplicate a server configuration and re-use it on a different virtual server. You can only restore a backup to the same server.
-
27-12-2009, 21:56 #7
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
Ah ok it's only a system restore like windows? the status of this snapshot is always available on database?
-
28-12-2009, 07:02 #8
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Europe
- Posts
- 184
Yes, as far as I can see.
-
28-12-2009, 10:47 #9
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Canada
- Posts
- 16
I've read this in the documentation as well, but perhaps you may know:
Is the deploy function version specific? Perhaps I can create a snapshot, upgrade to beta 10 and deploy my beta 9 settings?
-
28-12-2009, 14:30 #10
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Europe
- Posts
- 184
You can do this without the serversnapshot function. Just backup the ts3server.sqlitedb database file. (I.e. stop server, copy ts3server.sqlitedb to a different directory, install new server, copy ts3server.sqlitedb back into the new server directory).
The database structure did not change during the last few Beta versions. So there was no need to restart from a blank database. If there would be a change of the database structure, I believe, that then the serversnapshot would not be working either.
As far as I could test, the serversnapshot is not stored in an external file, but in the database. So it's merely a help on setting a restore point when wanting to test (mess around with) the server/permission/group configurations.
-
28-12-2009, 16:12 #11
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
Someone finished a serversnapshotdeploy hash=bnTd2E1kNITHjJYRCFjgbKKO5P8=|virtualserver_un ique_identifier=zrPkjznB1tMnRwj01xx7RxXjq= … with error id=0 msg=ok?
I got always an error... you have to copy the full hash log after serversnapshotdeploy? It does't work
-
28-12-2009, 17:32 #12
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Europe
- Posts
- 184
When you create a serversnapshot on your server, you will get a different hash and a different virtualserver_unique_identifier. You have to use those instead of the ones that are given in the examples.
In my case, there was in fact so many information printed to the telnet terminal that I could not scroll up to the position where the hash and the virtualserver_unique_identifier were printed to the screen. In PuTTY, I had to enable session logging to file in order to store that information.
Be aware of the additional blank that was wrongly inserted in "virtualserver_un ique_identifier" when I copied the description from the PDF manual. If you (mis)type it as it was shown in my post, then you will get an error.
-
28-12-2009, 19:12 #13
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
^^ no I used my own virtualserver_unique_identifier but i got an error
error id=0 msg=ok (3 ms)
error id=516 msg=invalid\sclient\stype (860 ms)
Total: 863 ms
use 1
serversnapshotdeploy hash=S4mtiop1I0odmSOV3VeJYAQwJG8=......|end_flat|e nd_permissions
-
29-12-2009, 21:57 #14
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Omaha, Nebraska
- Posts
- 3
Error
well i think that is because u have notloged into server query admin or had the command use sid=1 befor the actual script i may be wrong however
-
30-12-2009, 06:58 #15
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 30
x1donut you finished a serversnapshotdeploy successfully? Please write step by step your practice. With all logs
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
BUG? Repeated query client connect/diconnect
By HHD_HELLBOUND in forum Bug ReportsReplies: 5Last Post: 09-02-2012, 08:04 -
Server Query and Admin Group Questions
By Fearmaster in forum Permission SystemReplies: 8Last Post: 20-02-2010, 22:09 -
Problem mit User-Registration
By ragnatz in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 22-06-2006, 08:37 -
TCP Query commands
By Jammet in forum [TeamSpeak 2] Server SupportReplies: 2Last Post: 25-10-2002, 18:00


Reply With Quote
