After getting confused as heck (especially in the web part), here are the notes 
I made for myself and the exact steps I took (I have now installed it about ten 
times and they seem to work):

How to install BackupPC

General guide
Installing BackupPC
http://www.mantic.org/wiki/Installing_BackupPC






1.      Get the software from http://sourceforge.net/projects/backuppc/
2.      Copy it to /temp/BackupPC-3.0.0.tar.gz
3.      mkdir backuppc
4.      tar -xf BackupPC-3.0.0.tar.gz -C /temp/backuppc/
5.      cd /temp/backuppc/BackupPC-3.0.0
6.      yum install httpd expect perl-Compress-Zlib perl-Archive-Zip 
perl-File-RsyncP
7.      yum install -y perl-suidperl
8.      perl configure.pl
9.      ---------shown below are the questions and answers to a sucessful 
install---------------

Found /etc/BackupPC/config.pl, so this is an upgrade of an
existing BackupPC installation.  We will verify some existing
information, but you will probably not need to make any
changes - just hit ENTER to each question.

I found the following locations for these programs:

    bzip2        => /usr/bin/bzip2
    cat          => /bin/cat
    df           => /bin/df
    gtar/tar     => /bin/gtar
    gzip         => /bin/gzip
    hostname     => /bin/hostname
    nmblookup    => /usr/bin/nmblookup
    par2         =>
    perl         => /usr/bin/perl
    ping         => /bin/ping
    rsync        => /usr/bin/rsync
    sendmail     => /usr/sbin/sendmail
    smbclient    => /usr/bin/smbclient
    split        => /usr/bin/split
    ssh/ssh2     => /usr/bin/ssh

--> Are these paths correct? [y]?

Please tell me the hostname of the machine that BackupPC will run on.

--> BackupPC will run on host [yourcomputername.yourddomain.com]?

BackupPC should run as a dedicated user with limited privileges.  You
need to create a user.  This user will need read/write permission on
the main data directory and read/execute permission on the install
directory (these directories will be setup shortly).

The primary group for this user should also be chosen carefully.
The data directories and files will have group read permission,
so group members can access backup files.

--> BackupPC should run as user [backuppc]?

Please specify an install directory for BackupPC.  This is where the
BackupPC scripts, library and documentation will be installed.

--> Install directory (full path) [/usr/local/BackupPC]?

Please specify a data directory for BackupPC.  This is where all the
PC backup data is stored.  This file system needs to be big enough to
accommodate all the PCs you expect to backup (eg: at least several GB
per machine).

--> Data directory (full path) [/data/BackupPC]?

BackupPC has a powerful CGI perl interface that runs under Apache.
A single executable needs to be installed in a cgi-bin directory.
This executable needs to run as set-uid backuppc, or
it can be run under mod_perl with Apache running as user backuppc.

Leave this path empty if you don't want to install the CGI interface.

--> CGI bin directory (full path) [/var/www/cgi-bin/backuppc]? 
/var/www/cgi-bin/backuppc

BackupPC's CGI script needs to display various GIF images that
should be stored where Apache can serve them.  They should be
placed somewher under Apache's DocumentRoot.  BackupPC also
needs to know the URL to access these images.  Example:

    Apache image directory:  /usr/local/apache/htdocs/BackupPC
    URL for image directory: /BackupPC

The URL for the image directory should start with a slash.

--> Apache image directory (full path) [/var/www/html/backuppc/]? 
/var/www/html/backuppc/
--> URL for image directory (omit http://host; starts with '/') [/backuppc]? 
/backuppc

Ok, we're about to:

  - install the binaries, lib and docs in /usr/local/BackupPC,
  - create the data directory /data/BackupPC,
  - create/update the config.pl file /etc/BackupPC/config.pl,
  - optionally install the cgi-bin interface.

--> Do you want to continue? [y]? y
Created /data/BackupPC
Created /data/BackupPC/pool
Created /data/BackupPC/cpool
Created /data/BackupPC/pc
Created /data/BackupPC/trash
Created /etc/BackupPC
Created /var/log/BackupPC
Installing binaries in /usr/local/BackupPC/bin
Installing library in /usr/local/BackupPC/lib
Installing images in /var/www/html/backuppc/
Making init.d scripts
Installing docs in /usr/local/BackupPC/doc
Installing config.pl and hosts in /etc/BackupPC
Making backup copy of /etc/BackupPC/config.pl -> 
/etc/BackupPC/config.pl.pre-3.0.0
Installing cgi script BackupPC_Admin in /var/www/cgi-bin/backuppc

Ok, it looks like we are finished.  There are several more things you
will need to do:

  - Browse through the config file, /etc/BackupPC/config.pl,
    and make sure all the settings are correct.  In particular,
    you will need to set $Conf{CgiAdminUsers} so you have
    administration privileges in the CGI interface.

  - Edit the list of hosts to backup in /etc/BackupPC/hosts.

  - Read the documentation in /usr/local/BackupPC/doc/BackupPC.html.
    Please pay special attention to the security section.

  - Verify that the CGI script BackupPC_Admin runs correctly.  You might
    need to change the permissions or group ownership of BackupPC_Admin.
    If this is an upgrade and you are using mod_perl, you will need
    to restart Apache.  Otherwise it will have stale code.

  - BackupPC should be ready to start.  Don't forget to run it
    as user backuppc!  The installation also contains an
    init.d/backuppc script that can be copied to /etc/init.d
    so that BackupPC can auto-start on boot.  This will also enable
    administrative users to start the server from the CGI interface.
    See init.d/README.

Enjoy!

---------------------------------end----------------------------------




10.     ---------configure service--------------
# make damn sure you do the next line!
yum install -y perl-suidperl
 mkdir /var/lib/BackupPC
cp /temp/backuppc/BackupPC-3.0.0/init.d/linux-backuppc /etc/init.d/backuppc
chmod 755 /etc/init.d/backuppc
chkconfig --add backuppc
chkconfig backuppc on
chkconfig --list backuppc
chkconfig httpd on
/etc/init.d/backuppc start
----------------------------------------
11.     ----------------------Initial 
configuration-------------------------------


cd /home/backuppc/conf

12.     ----------------------End Initial 
configuration-------------------------------



chmod -R 750 /home/backuppc
chown -R backuppc:backuppc /home/backuppc
chown backuppc -R /data
chgrp backuppc -R /data

13.     ----------------------To get error status-------------------------------

cat /var/log/BackupPC/LOG

-------------------------------------------------------------------------

14.     ----------------------To add a client-------------------------------

1. copy the file /etc/BackupPC/config.pl to /etc/BackupPC/pc/computername.pl
cp /etc/BackupPC/config.pl /etc/BackupPC/pc/computername.pl

2. add the computer name to /etc/BackupPC/hosts



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to