Difference between revisions of "BackupPC"
Line 35: | Line 35: | ||
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 | ||
+ | |||
+ | 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 | Add following lines if you already use apache before |
Revision as of 14:25, 7 April 2009
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.
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