Automatic backups

edsandro

Active Member
Joined
Apr 11, 2016
Messages
14
Reaction score
0
Points
73
Hello, is there any way to do those backups from Yatqa to automatically every day?
 

dedmen

TeamSpeak Developer
Contributor
Joined
Mar 28, 2016
Messages
530
Reaction score
584
Points
197
Yes... YatQA is just executing query commands you can also do that yourself in some script and execute that daily
 

Hellboy

Member
Joined
Nov 9, 2015
Messages
27
Reaction score
2
Points
41
create backup every day and send to FTP
crontab -e
0 3 * * * /home/backup.sh

Code:
#!/bin/sh
###############################
#                   Script de Backup
#         
#
#                       
###############################

DATAA=`date +%Y-%m-%dx%H-%M`


DIRETORIOFONTE="/home/teamspeak"


DIRETORIOARQBCK="/home/backup"


echo "Entrando no diretorio de Backup"
cd $DIRETORIOARQBCK


echo "Listando diretorio"
ls -l


echo "Fazendo Backup..."
tar cvf $DATAA.tar $DIRETORIOFONTE

DATA=`date +%Y-%m-%dx%H-%M`

echo "Entrando no diretorio de envio de arquivos"
cd $DIRETORIOARQBCK

echo "Confirmando Diretorio..."
ls -l


sleep 5

FTPSERVER="IP"
USERNAME="USER"
PASSWORD="PASS"
LOCALDIR="/DIR"

echo "conectando no servidor FTP..."

ftp -ivn $FTPSERVER << FTP
user $USERNAME $PASSWORD

echo "Conectado e dentro do diretorio raiz."
cd $LOCALDIR

echo "Confirmando Diretorio..."
ls -l

#Upando Backup
echo "Upando arquivo..."
binary 
put $DATAA.tar

echo"listando arquivos"
ls -l

bye
EOF
FTP
 

edsandro

Active Member
Joined
Apr 11, 2016
Messages
14
Reaction score
0
Points
73
I already have this ftp backup I would like to automate that you do there by Yatqa anyone know tell me some tutorial to do what the friend mentioned above? Using Windows 7 64 bit.
 

ZombieJo

Active Member
Joined
Jun 20, 2015
Messages
37
Reaction score
7
Points
83
Would like to have a tutorial for YaTQA too or any other way to save only the virtual server.
 

edsandro

Active Member
Joined
Apr 11, 2016
Messages
14
Reaction score
0
Points
73
Preferably pel Yatqa since function automatically every day.
 
Top