Created
November 11, 2013 20:31
-
-
Save kimonostereo/7419844 to your computer and use it in GitHub Desktop.
Install AutoMySQLBackup for Hostgator. Forked from http://noseyparka.me.uk/2012/04/13/install-automysqlbackup-on-shared-linux-web-hosting-account/
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/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