Difference between revisions of "BackupPC"

From ArchWiki
Jump to: navigation, search
m
Line 30: Line 30:
 
  nano /etc/rc.conf
 
  nano /etc/rc.conf
 
  DAEMONS=(... backuppc ...)
 
  DAEMONS=(... backuppc ...)
 +
 +
===Apache Setup===
 +
Edit the apache configuration file and activate mod_perl
 +
 +
nano /etc/httpd/httpd.conf
 +
 +
LoadModule perl_module modules/mod_perl.so
 +
PerlModule Apache2
 +
 +
Then 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==
 
==Useful links==
 
* [http://backuppc.sourceforge.net/index.html BackupPC Home Page]
 
* [http://backuppc.sourceforge.net/index.html BackupPC Home Page]
 
* [http://backuppc.sourceforge.net/faq/BackupPC.html BackupPC Documentation]
 
* [http://backuppc.sourceforge.net/faq/BackupPC.html BackupPC Documentation]

Revision as of 02:35, 10 October 2007


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 ...)

Apache Setup

Edit the apache configuration file and activate mod_perl

nano /etc/httpd/httpd.conf
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2

Then 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