Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- BACKUP_DIR="/data/backup/12/*"
- MYSQL_USER="root"
- MYSQL=/usr/bin/mysql
- MYSQL_PASSWORD="mypass"
- for file in "$BACKUP_DIR"
- do
- echo -e $file
- echo -e $MYSQL --user=$MYSQL_USER -p$MYSQL_PASSWORD < $file
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement