Tutorial How to BACKUP your TeamSpeak server to the cloud service of your choice from a linux VPS!

Qraktzyl

Retired Staff
Contributor
Nov 2, 2015
997
728
161
How to BACKUP your TeamSpeak server to the cloud service of your choice from a linux VPS!

BE CAREFUL : If you have limited bandwith then this will use a lot of it.
LEVEL OF LINUX KNOWLEDGE FOR THIS TUTORIAL : Intermediate (1 year of experience +)

In this tutorial, I will show how to setup with google drive.

So you have just subscribed for a cheap VPS and can't afford the backup plan offered? You have an unlimited google drive storage because your university is cool or you just pay for it cause it's not that much and want to have backups!?

Well I have the solution for never loosing any of your important teamspeak server files (including database)! But first of all you just have to complete this survey...

DOWN HERE...


DOWN HERE...


ALMOST THERE...



HAHAHA I GOT YOU. There's no survey.

1- Install RClone
The solution for the backup of your teamspeak files is called RClone. You can look on how to install it here, it's very easy to follow so no need to post tutorial on how to install here:
Code:
http://rclone.org/install/
Once installed, proceed to step 2.

2- Google developer console setup
Connect to your google developer console :
Code:
https://console.developers.google.com

You will need to create a new project. Call it whatever you want (e.g : backups)
Once the project created, select it from the project drop down menu located at the left of the developer console.
Then click on Library-> Drive API
Activate the Google Drive API by clicking on the corresponding button.
Click on Users-> Create Users-> Oauth client
Type of application, select "Other". Name it whatever you want.
Note the Client ID and secret Key.

3- RClone setup
On the VPS, as root, issue the following command:
Code:
rclone config

Follow the instructions. When asked for automatic install, say NO and insert your drive client id and then your secret key.
It will give you a link, select it and copy it to your clipboard.
Paste it in a browser and give autorization to the script to manage your google drive folders.
It will give you an authorization code back. Copy and Paste it in your VPS.

Your VPS can now communicate with your google drive and vice-versa.

4- Use your imagination (and the rclone commands documentation)
Now depending on what you need to accomplish, you can refer to the rclone commands here:
Code:
http://rclone.org/commands/

Example : Create a .sh script with the folder to sync with your google drive and setup a cronjob to run it each morning, etc...


Do not hesitate to ask questions, I really made this tutorial as an Intermediate tutorial ;)
Qraktzyl out.
 

0x09

Member
Sep 21, 2016
14
9
38
Im using "backup-manager" package, let's try rclone :)
Thanks for the tips
 
Top