Skip to content

Instantly share code, notes, and snippets.

@kimonostereo
Created November 11, 2013 20:31
Show Gist options
  • Save kimonostereo/7419844 to your computer and use it in GitHub Desktop.
Save kimonostereo/7419844 to your computer and use it in GitHub Desktop.
#!/bin/sh
# This script installs AutoMySQLBackup in home directory on shared web server.
# Create prerequisite directories and move into $HOME/downloads folder:
mkdir -p $HOME/downloads
mkdir -p $HOME/etc/automysqlbackup
mkdir -p $HOME/bin
mkdir -p $HOME/backup/mysql/automysqlbackup
cd $HOME/downloads
# Download latest copy of AutoMySQLBackup and uncompress archive:
wget http://sourceforge.net/projects/automysqlbackup/files/latest/download
tar -zxvf automysqlbackup*.tar.gz
# Copy global configuration file to $HOME/etc/automysqlbackup and create
# custom configuration file based on global configuration:
cp automysqlbackup.conf $HOME/etc/automysqlbackup/
cp $HOME/etc/automysqlbackup/automysqlbackup.conf $HOME/etc/automysqlbackup/myserver.conf
# Copy executable file and make executable:
cp automysqlbackup $HOME/bin/
chmod +x $HOME/bin/automysqlbackup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment