Simple script in python using mysqldump tools, define cron backup your database mysql save in CDN bunny
git clone https://github.com/jhowbhz/auto-mysql-bunny.git scripts
apt install python3 -y && apt install python3-pip -y
cd /opt/scripts/ && pip3 install -r requeriments.txt
Especifique as suas credenciais do MYSQL e do FTP do Bunny
cp .env-example .env
nano .env
MYSQL_HOST=seu_host
MYSQL_PORT=sua_porta
MYSQL_USER=seu_usuario
MYSQL_PASSWORD=sua_senha
MYSQL_DATABASE=seu_banco_de_dados
FTP_HOST=seu_host_ftp
FTP_USERNAME=seu_usuario_ftp
FTP_PASSWORD=sua_senha_ftp
Vamos acessar a cron
crontab -e
0 3 * * * python3 /opt/scripts/bk.py
python /opt/scripts/bk.py
Get your FTP information