-
Notifications
You must be signed in to change notification settings - Fork 0
/
ts_backupEN.sh
41 lines (29 loc) · 1.38 KB
/
ts_backupEN.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#TS3 backup script using MEGA.nz storage. Written by DJ_Ironic, LiFe-Games.cz
#VERSION: 1.1_EN
date=$(date +"%d-%B_%H-%M")
#You can user prefix, when you are saving two or more servers to one folder. Otherwise, leave it in default.
prefix=TS3_
#TeamSpeak3 server location
serverloc=/your/path
#Your MEGA.nz logins
passwd=my-epic-password
#folder on mega, where you want to store you data (vždy musí začínát částí /Root/)
remotepath=/Root/my/remote/path
#DO NOT EDIT CODE AFTER THIS LINE!!!!
wget -q -N https://up.life-games.cz/files/load.txt
cat load.txt
sleep 5
#Archive creating...
echo "Compressing TeamSpeak3 server files."
7z a -t7z /backup/$prefix$date.7z $serverloc -m0=lzma2 -mx0 -aoa -mmt=on
#Mega.nz archive sending
echo "Uploading files to mega.nz storage."
megaput /backup/$prefix$date.7z --reload --username=$email --password=$passwd --path=$remotepath --disable-previews
#deleting local copy of archive
echo "Deleting local copy of archive."
rm /backup/$prefix$date.7z
wget -q -N https://up.life-games.cz/files/endtext.txt
cat endtext.txt
#Thanks for using, for any support, contact my on FB page: https://fb.com/lifegamescz or on E-Mail: [email protected]. I am here to help you :)
#Enjoy my work, if you really like it. Please consider Donation to my PayPal: [email protected]. You will support LiFe-Games.cz project and development of this script.