[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://mirrors.cn99.com/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=updates
baseurl=http://mirrors.cn99.com/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=addons
baseurl=http://mirrors.cn99.com/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=extras
baseurl=http://mirrors.cn99.com/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=centosplus
baseurl=http://mirrors.cn99.com/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4arch=$basearchrepo=contrib
baseurl=http://mirrors.cn99.com/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
2 、添加backuppc组及用户
groupadd backuppc
useradd -G backuppc backuppc
3 、安装httpd、mod_perl及BackupPC
yum install httpd mod_perl
rpm -ivh BackupPC-3.1.0-3.fc9.noarch.rpm
4 、设置页面访问权限
vim /etc/httpd/conf.d/BackupPC.conf
<Directory /usr/share/BackupPC/sbin/>
# BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
order allow,deny
allow from all
#allow from 127.0.0.1 114.255.58.130
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC
require valid-user
</Directory>
Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
5 、更改目录属主/组
chown -R backuppc:backuppc /etc/BackupPC
chown -R backuppc:backupc /var/lib/BackupPC.dat
|