|
|
|
|
|
|
|
|
# Set the database credentials |
|
|
# Set the database credentials |
|
|
sudo apt-get update |
|
|
sudo apt-get update |
|
|
sudo apt-get -y install cifs-utils |
|
|
sudo apt-get -y install cifs-utils |
|
|
|
|
|
cd / |
|
|
|
|
|
mkdir mysql_backup |
|
|
|
|
|
sleep 2 |
|
|
|
|
|
|
|
|
|
|
|
sudo chmod 777 mysql_backup |
|
|
|
|
|
sleep 2 |
|
|
|
|
|
|
|
|
sudo mount //10.10.5.26/trias /mysql_backup/ -o username='baptist',password='2021Bbh',domain='bbh' |
|
|
sudo mount //10.10.5.26/trias /mysql_backup/ -o username='baptist',password='2021Bbh',domain='bbh' |
|
|
|
|
|
sleep 2 |
|
|
|
|
|
|
|
|
|
|
|
cd /mysql_backup/ |
|
|
|
|
|
ls |
|
|
|
|
|
|
|
|
DB_USER="root" |
|
|
DB_USER="root" |
|
|
DB_PASS="root@123" |
|
|
DB_PASS="root@123" |