Difference between revisions of "BackupPC"

From ArchWiki
Jump to: navigation, search
Line 9: Line 9:
  
 
===Create the the backuppc user===
 
===Create the the backuppc user===
BackupPC should run under the backuppc user.  To add the user run:
 
useradd backuppc
 
  
 
===Install the package===
 
===Install the package===
 
Use pacman to install the package.
 
Use pacman to install the package.
 
  pacman -S BackupPC
 
  pacman -S BackupPC
 
===Edit the config file===
 
nano /etc/BackupPC/config.pl
 
  
 
==Running BackupPC==
 
==Running BackupPC==
 
===Start BackupPC===
 
===Start BackupPC===
 +
To manually start BackupPC issue this command.
 
  /etc/rc.d/backuppc start
 
  /etc/rc.d/backuppc start
 
===Stop BackupPC===
 
/etc/rc.d/backuppc stop
 
  
 
===Make BackupPC run at startup===
 
===Make BackupPC run at startup===
Edit /etc/rc.conf and change the DAEMONS line.
+
To make BackupPC load at startup edit /etc/rc.conf and add it to DAEMONS.
 
  nano /etc/rc.conf
 
  nano /etc/rc.conf
 
  DAEMONS=(... backuppc ...)
 
  DAEMONS=(... backuppc ...)
  
==Web Interface Configuration==
+
==Apache Configuration==
 
BackupPC has a web interface that allows you to control it.  It required Apache and mod_perl.
 
BackupPC has a web interface that allows you to control it.  It required Apache and mod_perl.
  
Install Apache and mod_perl with pacman
+
===Install Apache and mod_perl===
 
  pacman -S apache
 
  pacman -S apache
 
  pacman -S mod_perl
 
  pacman -S mod_perl
  
Edit the apache configuration file.
+
===Edit Apache configuration===
  nano /etc/httpd/conf/httpd.conf
+
You can edit the apache configuration file to change the port number, etc.
 +
  nano /etc/httpd/conf/backuppc-httpd.conf
  
Activate mod_perl.
+
===Starting Apache manually===
  LoadModule perl_module modules/mod_perl.so
+
/etc/rc.d/backuppc-httpd start
  PerlModule Apache2
+
 
 +
===Starting Apache on boot===
 +
Add the backuppc-http daemon to rc.conf
 +
  nano /etc/rc.conf
 +
  DAEMONS=(... backuppc-httpd ...)
  
Add a directory defintion.
+
Browse to http://localhost:81/cgi-bin/BackupPC_Admin
<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 21:34, 16 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

Install the package

Use pacman to install the package.

pacman -S BackupPC

Running BackupPC

Start BackupPC

To manually start BackupPC issue this command.

/etc/rc.d/backuppc start

Make BackupPC run at startup

To make BackupPC load at startup edit /etc/rc.conf and add it to DAEMONS.

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

Apache Configuration

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

Install Apache and mod_perl

pacman -S apache
pacman -S mod_perl

Edit Apache configuration

You can edit the apache configuration file to change the port number, etc.

nano /etc/httpd/conf/backuppc-httpd.conf

Starting Apache manually

/etc/rc.d/backuppc-httpd start

Starting Apache on boot

Add the backuppc-http daemon to rc.conf

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

Browse to http://localhost:81/cgi-bin/BackupPC_Admin

Useful links