Install BackupPC from source on the BackupPC server
- Here are my instructions to install from source. These steps must usually be done as root.
- Download backuppc from backuppc.sourceforge.net. My direct link is http://superb-east.dl.sourceforge.net/sourceforge/backuppc/BackupPC-3.0.0.tar.gz. Store the source in /opt
- # umask 022
- BackupPC compression requires several perl modules
# aptitude install libcompress-zlib-perl libarchive-zip-perl
- BackupPC (rsync xfer) requires libfile-rsync-perl v. 0.68 or higher
# aptitude install libfile-rsyncp-perl
- Unpack and install the software
# cd /opt
# mkdir build
# cd build
# tar -zxvpf /opt/BackupPC-3.0.0.tar.gz
# cd BackupPC-3.0.0
# perl configure.pl (answers logged)
--> Full path to existing main config.pl []?
--> Are these paths correct? [y]?
--> BackupPC will run on host [on-demand]?
--> BackupPC should run as user [backuppc]? backup
--> Install directory (full path) [/usr/local/BackupPC]? /opt/pkg/BackupPC-3.0.0
--> Data directory (full path) [/data/BackupPC]? /srv/on-demand/archive
--> Compression level [3]?
--> CGI bin directory (full path) []? /usr/lib/cgi-bin
--> Apache image directory (full path) []? /var/www/BackupPC
--> URL for image directory (omit http://host; starts with '/') []? /BackupPC
--> Do you want to continue? [y]? y
- Once the install finishes,
# cd /opt
# ln -s pkg/BackupPC-3.0.0 BackupPC
- Install the backuppc init script.
# cp /opt/build/BackupPC-3.0.0/init.d/debian-backuppc /etc/init.d/backuppc
(Use the appropriate script for your distribution.)
- Edit /etc/init.d/backuppc
diff debian-backuppc backuppc
13c13
< BINDIR=/opt/pkg/BackupPC-3.0.0/bin
---
> BINDIR=/opt/BackupPC/bin
- Activate BackupPC on each boot
# sysv-rc-conf --level 2345 backuppc on
# sysv-rc-conf --level 016 backuppc off
- Start backuppc
# /etc/init.d/backuppc start
NOTE: If you install BackupPC so that its data directory is not /srv/on-demand/archive you will need to adjust the paths in the predump and postdump scripts as well as use your location when configuring clients' RsyncShareNames.