BackupPC

From ArchWiki
Revision as of 02:43, 10 October 2007 by Dtandersen (Talk | contribs)

Jump to: navigation, search


Overview

BackupPC is a high-performance, enterprise-grade system for backing up Unix, Linux, WinXX, and MacOSX PCs, desktops and laptops to a server's disk. BackupPC is highly configurable and easy to install and maintain.

Given the ever decreasing cost of disks and raid systems, it is now practical and cost effective to backup a large number of machines onto a server's local disk or network storage. For some sites this might be the complete backup solution. For other sites additional permanent archives could be created by periodically backing up the server to tape.

Installation

Create the the backuppc user

BackupPC should run under the backuppc user. To add the user run:

useradd backuppc

Install the package

Use pacman to install the package.

pacman -S BackupPC

Edit the config file

nano /etc/BackupPC/config.pl

Running BackupPC

Start BackupPC

/etc/rc.d/backuppc start

Stop BackupPC

/etc/rc.d/backuppc stop

Make BackupPC run at startup

Edit /etc/rc.conf and change the DAEMONS line.

nano /etc/rc.conf
DAEMONS=(... backuppc ...)

Web Interface Configuration

BackupPC has a web interface that allows you to control it. It required Apache and mod_perl.

Install Apache and mod_perl with pacman

pacman -S apache
pacman -S mod_perl

Edit the apache configuration file.

nano /etc/httpd/conf/httpd.conf

Activate mod_perl.

LoadModule perl_module modules/mod_perl.so
PerlModule Apache2

Add a directory defintion.

<Directory /opt/BackupPC/cgi-bin>
  SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlOptions +ParseHeaders
  Options +ExecCGI
  Order deny,allow
  Deny from all
  Allow from 192.168.1
  #AuthName "Backup Admin"
  #AuthType Basic
  #AuthUserFile /path/to/user_file
  #Require valid-user
</Directory>

Useful links