CPanel backups

From GigaTux Wiki
Jump to navigation Jump to search

Setup

Install duplicity

yum install gcc python-devel librsync-devel python-lockfile
cd /root
wget https://code.launchpad.net/duplicity/0.7-series/0.7.16/+download/duplicity-0.7.16.tar.gz
tar xzvf duplicity*
cd duplicity*
python setup.py install --prefix=/usr/local

Set up directories

mkdir /var/log/b2backup
chmod 700 /var/log/b2backup
mkdir /var/b2backup
chmod 700 /var/b2backup

Copy scripts

yum install pbzip2

Copy /usr/local/sbin/b2backup and the associated /etc/cron.weekly/b2backup scripts from cpanel44002 on to the new server.

Turn off existing backups

Make sure cPanel is no longer backing up to talkie.