Share your knowledge at the LQ Wiki.
Go Back > Linux Answers > Applications / GUI / Multimedia
User Name


By carltm at 2008-11-15 17:44
I wanted to install backuppc on a USB device with RAID0, so that if something happened to the host
computer, I could just plug the storage device into another host and be completely functional in
a few minutes. An easy way to do this is to install virtualization software such as VMware-Server
and create a virtual machine that will only be used for backuppc.

If you don't want a virtual machine, simply install CentOS 5.2 on a real computer and follow the
directions below.

I won't go into the details of setting up the virtual environment. There is already good documentation
for setting up virtualization. Create a virtual host and install CentOS 5.2. After the installation
is complete, remove the HWADDR line from /etc/sysconfig/network-scripts/ifcfg-eth0.

Here is the list of commands to run as root from root's home directory:

Download the backuppc rpm from

Run: yum localinstall backuppc*rpm

Run: yum install mod_ssl

Edit /etc/httpd/conf/httpd.conf
-change the User and Group to backuppc
-if desired, update ServerAdmin, ServerName and UseCanonicalName
-add RedirectMatch permanent ^/index.html$
(changing host.fqdn.tld with your fully qualified domain name)

Run: htpasswd /var/lib/backuppc/passwd/htpasswd admin

Edit /etc/httpd/conf.d/backuppc.conf
-change "allow from" line to "allow from all"
-add this stanza
  <Directory /usr/share/backuppc>
    RewriteEngine On
    RewriteBase /backuppc
    RewriteCond %{HTTPS} off
    RewriteRule ^.? https://host.fqdn.tld/backuppc/cgi-bin/BackupPC_Admin

Run: service httpd start; chkconfig httpd on

Run: system-config-securitylevel-tui
-add HTTP and HTTPS

Edit /etc/BackupPC/
-set   $Conf{CgiAdminUsers}     = 'admin';
-change "html/doc/BackupPC.html" to

Edit /usr/lib/BackupPC/CGI/
-change '$bpc....BackupPC.html' to
-verify that the version number is still 3.1.0

Run: service backuppc start; chkconfig backuppc on

Run: ssh-keygen -t rsa
-do not enter a passphrase

Run: cp .ssh/ backuppc.key
Congratulations. You now have backuppc running.

To configure a new host, start by logging in as root to this host.

Run: ssh newhost
-this tests that ssh is set up correctly

If you are asked for a password, run: cat backuppc.key | ssh root@newhost
"cat >> .ssh/authorized_keys2"

Run: ssh newhost
-this time you should get a shell prompt without typing a password or

Run: cp -pr .ssh ~backuppc; chown -R backuppc. ~backuppc/.ssh
Now you're ready to connect to the webserver and configure the new host!


All times are GMT -5. The time now is 02:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration