Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -d /var/backups/mysql_dumps ]; then
- # esto se ejecuta si la condicion es verdadera
- echo "realizando backup"
- mysqldump usuarios_sistema > /var/backups/mysql_dumps/usuarios_sistema.mysql
- ls /var/backups/mysql_dumps/
- else
- # esto se ejecuta si la condicion es falsa
- echo "Primero debe crear el directorio '/var/backups/mysql_dumps/'." >&2
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement