Skip to content

Instantly share code, notes, and snippets.

@alexandreteles
Created January 13, 2015 22:55
Show Gist options
  • Save alexandreteles/8aeb59aadf8c48c3d81d to your computer and use it in GitHub Desktop.
Save alexandreteles/8aeb59aadf8c48c3d81d to your computer and use it in GitHub Desktop.
backupTools.sh - A Script to install etckeeper and bup
#!/bin/sh
yum update -y
yum localinstall http://mirror.globo.com/epel/6/i386/epel-release-6-8.noarch.rpm -y
yum update -y
MACHINE_TYPE=`getconf LONG_BIT`
if [ ${MACHINE_TYPE} == '64' ]; then
yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm -y
else
yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm -y
fi
yum update -y
yum install etckeeper
cd /etc
etckeeper init
cd /tmp
git clone https://github.com/bup/bup.git
yum groupinstall "Development Tools" -y
yum install python python-devel -y
yum install fuse-python pyxattr pylibacl -y
yum install perl-Time-HiRes -y
make
make install
cd ..
rm -rf bup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment