GNU Linux Bash – simple backup web root and mysql mariadb database in one go script
v2 mkdir /root/backups; vim /scripts/backup_db.sh #!/bin/bash # Prompt user for root password read -sp “Enter MySQL root password: ” root_password echo # Get list of databases databases=$(mysql -uroot -p”$root_password” -e “SHOW DATABASES;” | grep -Ev “(Database|information_schema|performance_schema|mysql)”) for db in $databases; … Continue reading GNU Linux Bash – simple backup web root and mysql mariadb database in one go script
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed