Automatic backups

dedmen

TeamSpeak Developer
Contributor
Mar 28, 2016
530
583
157
Yes... YatQA is just executing query commands you can also do that yourself in some script and execute that daily
 

Hellboy

Member
Nov 9, 2015
27
2
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
Apr 11, 2016
14
0
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
Jun 20, 2015
37
7
83
Would like to have a tutorial for YaTQA too or any other way to save only the virtual server.
 
Top