12345678910111213141516 |
- # Set the database credentials
- sudo apt-get update
- sudo apt-get -y install cifs-utils
- sudo mount //10.10.5.26/trias /mysql_backup/ -o username='baptist',password='2021Bbh',domain='bbh'
-
- DB_USER="root"
- DB_PASS="root@123"
- DB_NAME="triq_demo"
-
- # Set the backup directory
- echo "Enter the name of backup file: "
- read fileName
- BACKUP_FILE="/mysql_backup/$fileName"
-
- # Restore backup file
- mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE
|