Created
May 13, 2016 19:36
-
-
Save alastori/974d227fc319edb00c68e13c7690baef to your computer and use it in GitHub Desktop.
Bash script to install MySQL Enterprise Backup 4.x via RPM in Enterprise Linux 7.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Bash script to install MySQL Enterprise Backup 4.x via RPM in Enterprise Linux 7.x | |
#Copy the MEB RPM (meb-4*.rpm) into the $PACKAGES_DIR and run this script as root | |
#You can find the binaries in http://support.oracle.com (preferable) or http://edelivery.oracle.com | |
#Modify these variables as you wish | |
PACKAGES_DIR=/home/vagrant/packages | |
#Next lines install MySQL Enterprise Backup | |
echo "Installing MySQL Enterprise Backup..." | |
rpm -ivh $PACKAGES_DIR/meb-4*.rpm | |
MEB_HOME=$(ls -d /opt/mysql/meb-4* | head -1) | |
echo "MySQL Enterprise Backup installed in $MEB_HOME" | |
$MEB_HOME/bin/mysqlbackup --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment