Hi, just installed backuppc-3.1.0 from scratch on a RHEL4 system. I ran into two problems with configure.pl:
1) it's hardcoded for #!/bin/perl ; this may not be worth fixing, but many (most?) systems put perl in /usr/bin (or god knows where else). one way is to start under #!/bin/sh and try to find perl in the PATH, then re-start yourself under perl. There's some perl faq entry about this that i can't find right now. Again, not real high priority. in any event, I'm thinking a better default is #!/usr/bin/perl. 2) if you say --no-fhs, and you're doing a new install, configure bombs with a mkdir error, because it never initializes the configdir. See below for a screendump. I hardcoded some defaults next to where it sets defaults for fhs, and it works. [root BackupPC-3.1.0]# diff configure.pl configure.pl.danno 1c1 < #!/bin/perl --- > #!/usr/bin/perl 236a237,241 > } else { > $Conf{TopDir} ||= "/data/BackupPC"; > $Conf{ConfDir} ||= $opts{"config-dir"} || "/usr/local/BackupPC/etc"; > $Conf{InstallDir} ||= "/usr/local/BackupPC"; > $Conf{LogDir} ||= $opts{"log-dir"} || "/usr/local/BackupPC/log"; 238a244 > thanks danno -- Dan Pritts, Sr. Systems Engineer Internet2 office: +1-734-352-4953 | mobile: +1-734-834-7224 [root BackupPC-3.1.0]# ./configure.pl --install-dir=/backuppc --no-fhs --compress-level=2 --data-dir=/backuppc/data --log-dir=/backuppc/log --html-dir=/backuppc/web/backuppc --html-dir-url=/backuppc --cgi-dir=/backuppc/web/cgi-bin --config-dir=/backuppc/conf 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: /etc/BackupPC/config.pl). Otherwise, just hit return. --> Full path to existing main 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 => par2 => perl => /usr/bin/perl ping => /bin/ping rsync => /usr/bin/rsync sendmail => /usr/sbin/sendmail 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 [OBSCURED]? 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) [/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) [/backuppc/data]? 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) [/backuppc/web/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 somewhere 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) [/backuppc/web/backuppc]? --> URL for image directory (omit http://host; starts with '/') [/backuppc]? Ok, we're about to: - install the binaries, lib and docs in /backuppc, - create the data directory /backuppc/data, - create/update the config.pl file /config.pl, - optionally install the cgi-bin interface. --> Do you want to continue? [y]? Created /backuppc/data Created /backuppc/data/pool Created /backuppc/data/cpool Created /backuppc/data/pc Created /backuppc/data/trash mkdir : No such file or directory at ./configure.pl line 567 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ BackupPC-devel mailing list BackupPC-devel@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/