Difference between revisions of "BackupPC"

From ArchWiki
Jump to: navigation, search
m (add ln and move to sys recovery cat)
Line 1: Line 1:
[[Category:Utilities (English)]]
+
[[Category:HOWTOs (English)]] [[Category:System recovery (English)]]
 
+
'''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.
==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.
 
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.
Line 11: Line 9:
  
 
===Install the package===
 
===Install the package===
Use pacman to install the package.
+
Use [[yaourt]] to install the package.
 
  yaourt -S backuppc
 
  yaourt -S backuppc
 
  chown -R backuppc:nobody /var/log/BackupPC
 
  chown -R backuppc:nobody /var/log/BackupPC
 +
 
==Running BackupPC==
 
==Running BackupPC==
 
===Start BackupPC===
 
===Start BackupPC===
 
To manually start BackupPC issue this command.
 
To manually start BackupPC issue this command.
 
  /etc/rc.d/backuppc start
 
  /etc/rc.d/backuppc start
 
  
 
===Make BackupPC run at startup===
 
===Make BackupPC run at startup===
Line 33: Line 31:
  
 
===Edit Apache configuration===
 
===Edit Apache configuration===
You can edit the apache configuration file to change the port number, etc.
+
You can edit the [[Apache]] configuration file to change the port number, etc.
 
  nano /etc/httpd/conf/backuppc-httpd.conf
 
  nano /etc/httpd/conf/backuppc-httpd.conf
  
Line 44: Line 42:
 
  Require valid-user
 
  Require valid-user
  
set admin password
+
Set admin password
 
  htpasswd -c /etc/BackupPC/BackupPC.users admin
 
  htpasswd -c /etc/BackupPC/BackupPC.users admin
  
Line 50: Line 48:
 
  LockFile "/var/lock/backuppc-httpd.lock"
 
  LockFile "/var/lock/backuppc-httpd.lock"
 
  PidFile "/var/run/httpd/backuppc-httpd.pid"
 
  PidFile "/var/run/httpd/backuppc-httpd.pid"
 
  
 
===Starting Apache manually===
 
===Starting Apache manually===
Line 62: Line 59:
 
Browse to http://localhost:81/cgi-bin/BackupPC_Admin
 
Browse to http://localhost:81/cgi-bin/BackupPC_Admin
  
==Useful links==
+
==Resources==
 
* [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 16:26, 28 December 2009

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 yaourt to install the package.

yaourt -S backuppc
chown -R backuppc:nobody /var/log/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

Edit /etc/BackupPC/config.pl. Set administrator name

$Conf{CgiAdminUsers} = 'admin'; 

Next, we need to add a users file. Edit /etc/httpd/conf/backuppc-httpd.conf

AuthName "Backup Admin"
AuthType Basic
AuthUserFile /etc/BackupPC/BackupPC.users
Require valid-user

Set admin password

htpasswd -c /etc/BackupPC/BackupPC.users admin

Add following lines if you already use apache before

LockFile "/var/lock/backuppc-httpd.lock"
PidFile "/var/run/httpd/backuppc-httpd.pid"

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

Resources