This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATA=`date +%Y/%m/%d` | |
LOG=/var/log/mysqldump-`date +%Y-%m-%d`.log | |
### VARIAVEIS PARA ENVIO DE E-MAIL | |
ASSUNTO=" MySqlDump - Backup dos Bancos de Dados em `date +%d/%m/%Y`" | |
DESTINATARIO="[email protected]" | |
OUTPUT="/var/backups/mysql/$DATA" | |
################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################### | |
## CREDENCIAIS DO MYSQL NO ARQUIVO /root/.my.cnf ## | |
## ## | |
## [mysql] ## | |
## user=root ## | |
## password='M!nh@S3nh@' ## | |
## host='ip-ou-dns-do-servidor' ## | |
## ## |