Is this a new installation or upgrade for BackupPC? If this is
an upgrade please tell me the full path of the existing BackupPC
configuration file (eg: /xxxx/conf/config.pl). Otherwise, just
hit return.
–> Full path to existing conf/config.pl []?
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 [backup.cvx.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.
By default the install directories will have group write permission.
The data directories and files will have group read permission but
no other permission.
–> 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/backuppc
Please specify a data directory for BackupPC. This is where the
configuration files, LOG files and all the PC backups are stored.
This file system needs to be big enough to accommodate all the
PCs you expect to backup (eg: at least 1-2GB per machine).
–> Data directory (full path) []? /home/backuppc
BackupPC can compress pool files, providing around a 40% reduction in pool
size (your mileage may vary). Specify the compression level (0 turns
off compression, and 1 to 9 represent good/fastest to best/slowest).
The recommended values are 0 (off) or 3 (reasonable compression and speed).
Increasing the compression level to 5 will use around 20% more cpu time
and give perhaps 2-3% more compression.
–> Compression level [3]?
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’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/icons
–> URL for image directory (omit http://host; starts with ‘/’
[]? /icons
Ok, we’re about to:
- install the binaries, lib and docs in /usr/backuppc,
- create the data directory /home/backuppc,
- create/update the config.pl file /home/backuppc/conf,
- optionally install the cgi-bin interface.
–> Do you want to continue? [y]?
Created /usr/backuppc/bin
Created /usr/backuppc/doc
Created /usr/backuppc/lib/BackupPC/CGI
Created /usr/backuppc/lib/BackupPC/Lang
Created /usr/backuppc/lib/BackupPC/Xfer
Created /usr/backuppc/lib/BackupPC/Zip
Created /var/www/html/backuppc
Created /home/backuppc/.
Created /home/backuppc/conf
Created /home/backuppc/pool
Created /home/backuppc/cpool
Created /home/backuppc/pc
Created /home/backuppc/trash
Created /home/backuppc/log
Installing binaries in /usr/backuppc/bin
Installing library in /usr/backuppc/lib
Installing images in /var/www/icons
Making init.d scripts
Installing docs in /usr/backuppc/doc
Installing config.pl and hosts in /home/backuppc/conf
PING backup.cvx.com (127.0.0.1) 56(84) bytes of data.
64 bytes from backup.cvx.com (127.0.0.1): icmp_seq=0 ttl=64 time=0.048 ms
— backup.cvx.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms, pipe 2
Installing cgi script BackupPC_Admin in /var/www/cgi-bin
Ok, it looks like we are finished. There are several more things you
will need to do:
- Browse through the config file, /home/backuppc/conf/config.pl,
and make sure all the settings are correct. In particular, you
will need to set the smb share password and user name, backup
policies and check the email message headers and bodies.
- Edit the list of hosts to backup in /home/backuppc/conf/hosts.
- Read the documentation in /usr/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.
- 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!
[root@backup BackupPC-2.1.2]#