BackupPC-users

Re: [BackupPC-users] Looking for IncrLevel in v4 init script

2017-02-07 14:35:26
Subject: Re: [BackupPC-users] Looking for IncrLevel in v4 init script
From: Michael Huntley <michael AT huntley DOT net>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 7 Feb 2017 11:34:47 -0800

Bloody hell. Stupid is as stupid does.  Forgot to copy new init script over. <Grumbling begins here>


On 2/7/2017 11:12 AM, Craig Barratt wrote:
mph,

Yes, that appears to be an old init.d script.  And, yes, IncrLevel is no longer present in 4.0.0.

None of the recent 3.x.x or 4.0.0 init.d scripts include that code.

Craig

On Tue, Feb 7, 2017 at 10:57 AM, Michael Huntley <michael AT huntley DOT net> wrote:
I noticed that BackupPC would not start and gave a very cryptic message:

BackupPC cannot be started because important parameters are missing from
config.pl.
If you just upgraded BackupPC, please update /etc/backuppc/config.pl.

I noticed in the init script there is a grep for IncrLevel.  If it's
missing BackupPC will not start.  Since v4 is using reverse deltas there
isn't a need for this, is there? (The setting is missing from v4
documentation.)

Is this a hold-over from v2 to v3 upgrade?

For expediency I removed the check from my init script.

check_old_config()
{
     BAD=0
     CONF=/etc/backuppc/config.pl

     grep -q IncrLevel $CONF || BAD=1

     if [ "$BAD" = "1" ]; then
         echo "BackupPC cannot be started because important parameters
are missing from config.pl."
         echo "If you just upgraded BackupPC, please update
/etc/backuppc/config.pl."
         exit 1
     fi
}


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


_______________________________________________
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/

------------------------------------------------------------------------------
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>