Install BackupPC on CentOS 7

1. Install BackupPC and prerequsities
#yum install epel-release
#yum install backuppc nfs-utils nfs-utils-lib bzip2
#systemctl restart backuppc.service

2. Set permissions
#cd /usr/share/BackupPC/
#chown backuppc:apache sbin/*
#cd /usr/share/BackupPC/sbin
#chmod u+s BackupPC_Admin
#usermod -s /bin/bash backuppc

3. Set firewall rule for HTTP port.
#firewall-cmd –zone=public –add-port=80/tcp –permanent
#firewall-cmd –reload

4. Edit BackupPC config
#vi /etc/BackupPC/

$Conf{CgiAdminUserGroup} = ”;
$Conf{CgiAdminUsers} = ”;
$Conf{CgiAdminUserGroup} = ”;
$Conf{CgiAdminUsers} = ‘backuppc’;



$Conf{PingPath} = ”;
$Conf{PingPath} = ‘/bin/ping’;

5. Edit your apache configuration
#vi /etc/httpd/conf.d/BackupPC.conf
<VirtualHost *:80>
# BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication
# though all functionality is disabled.
# htpasswd -c /etc/BackupPC/apache.users yourusername

ServerName backuppc.local.Dev
DocumentRoot /usr/share/BackupPC

<Directory /usr/share/BackupPC/>
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName “BackupPC”

<IfModule mod_authz_core.c>
# Apache 2.4
Require valid-user
Require valid-user
<IfModule !mod_authz_core.c>
# Apache 2.2
order deny,allow
allow from all
#allow from
#allow from ::1
#require valid-user

Alias /BackupPC/images /usr/share/BackupPC/html/
#ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
#ScriptAlias /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias / /usr/share/BackupPC/sbin/BackupPC_Admin


Create username and password for BackupPC GUI
#htpasswd -c /etc/BackupPC/apache.users backuppc

New password:
Re-type new password:
Adding password for user backuppc

Restart backuppc & Apache service
#systemctl restart backuppc.service
#systemctl restart httpd.service

Then generate backuppc ssh-key & then copy to public to root client for backup

#su – backuppc
#ssh-keygen -t rsa

Note : try to access root client after adding the public key of backuppc server. Just for first time & make it sure that it’s work. For example if you use RSYNC to backup your client server make sure that client server already install RSYNC.

Reference :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s