read fileName | read fileName | ||||
BACKUP_FILE="/mysql_backup/$fileName" | BACKUP_FILE="/mysql_backup/$fileName" | ||||
mysql -u $DB_USER -p$DB_PASS -e "CREATE DB triq_demo;" | |||||
# Restore backup file | # Restore backup file | ||||
mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE | mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE |