BackupPC-users

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

2017-02-07 01:03:40
Subject: [BackupPC-users] Tweak to Lib.pm Backuppc 4.x
From: Michael Huntley <michael AT huntley DOT net>
To: BackupPC-users AT lists.sourceforge DOT net
Date: Mon, 6 Feb 2017 22:02:47 -0800
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 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>
  • [BackupPC-users] Tweak to Lib.pm Backuppc 4.x, Michael Huntley <=