Skip to content

Instantly share code, notes, and snippets.

@alastori
Created May 13, 2016 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alastori/974d227fc319edb00c68e13c7690baef to your computer and use it in GitHub Desktop.
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
#!/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