CPanel backups: Difference between revisions

From GigaTux Wiki
Jump to navigation Jump to search
Created page with "==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/..."
 
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
===Install duplicity===
===Install duplicity===


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


===Set up directories===
===Set up directories===


mkdir /var/log/b2backup
mkdir /var/log/b2backup
chmod 700 /var/log/b2backup
chmod 700 /var/log/b2backup
mkdir /var/b2backup
mkdir /var/b2backup
chmod 700 /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.

Latest revision as of 20:02, 23 January 2018

Setup

Install duplicity

easy_install pip
pip install b2
yum install gcc python-devel librsync-devel python-lockfile python-fasteners
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.