How to install Backupninja to CentOS?


(Dmitry Fedyuk) #1

1. Install the EPEL repo

2. Install the backupninja rpm package:

yum install backupninja

3. Patch /usr/share/backupninja/mysql

The Debian’s stable version of Backupninja is a outdated, so I apply 2 patches from the Backupninja’s latest version to /usr/share/backupninja/mysql:


Replace the line:

table=$( expr match "$qualified_table" "$db\.\([^\w]*\)" )

with the following one:

table=$( expr match "$qualified_table" "$db\.\(.\+\)" )


Replace the line:

execstr="$DUMP -r '$dumpdir/${db}.sql'"

with the following one:

execstr="$DUMP > '$dumpdir/${db}.sql'"

4. How to install Duplicity to CentOS?

5. How to avoid SSH / SCP / SFTP connection resets during a long operation?

6. How to install Paramiko to CentOS?

7. How to install Boto to CentOS?

8. How to fix «/usr/lib64/python2.7/site-packages/duplicity/ DeprecationWarning: BaseException.message has been deprecated as of Python 2.6» in Duplicity?