BackupPC-users

Re: [BackupPC-users] Tweak to Lib.pm Backuppc 4.x

2017-03-02 22:17:45
Subject: Re: [BackupPC-users] Tweak to Lib.pm Backuppc 4.x
From: Michael Huntley <michael AT huntley DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 02 Mar 2017 19:16:34 -0800

Hi Craig,

I pulled the latest from github and used makeDist, then ran configure.pl.

Cheers!

mph

 


On 2017-03-02 16:14, Craig Barratt wrote:

Mph,
 
configure.pl should update the value of $useFHS when it does the installation.  Did you install from Github using makeDist then configure.pl?  Or did you manually copy the files?

I noticed in github, backuppc3 lib/BackupPC/Lib.pm has $useFHS = 1, while master (v4) has $useFHS = 0.  While that shouldn't matter (since configure.pl updates it), I will change master to $useFHS = 1.

Craig

On Mon, Feb 6, 2017 at 10:02 PM, Michael Huntley <michael AT huntley DOT net> wrote:
Hey guys,

noticed a change to Lib.pm from v3.x in v4.x that is causing headaches.
ConfDir values appear to be swapped...

In Lib.pm:
if ( $useFHS ) {
         $paths = {
             useFHS     => $useFHS,
             TopDir     => $topDir,
             InstallDir => $installDir,
             ConfDir    => $confDir eq "" ? '/etc/backuppc' : $confDir,
             LogDir     => '/var/log/BackupPC',
             RunDir     => '/var/run/BackupPC',
         };
     } else {
         $paths = {
             useFHS     => $useFHS,
             TopDir     => $topDir,
             InstallDir => $installDir,
             ConfDir    => $confDir eq "" ? "$topDir/conf" : $confDir,
             LogDir     => "$topDir/log",
             RunDir     => "$topDir/log",
         };

Upgrades will not work with this current configuration.  ConfDir values
for non FHS ConfDir should be set to '/etc/backuppc' for the upgrade to
work.  New installs do not work either as the default setup sets $useFHS
= 0 and places the config.pl in '/etc/backuppc'. This is from the latest
4.x git repo using makeDist.

A big Thank You to you all for such a great product!

Cheers,

mph

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>