Hi there, On Tue, 14 Apr 2020, R.C. wrote:
I have Backuppc V4 rpm installation on Centos8 and I am experiencing troubles with blackout periods. I would like this server to perform backups during daytime only but I cannot apply the desired behaviour. At the end of this message you can find my $Conf{WakeupSchedule} and $Conf{BlackoutPeriods}. I have not defined blackout periods per hosts and thus only server-wide periods should be applied. I have of course reloaded configuration multiple times but no changes. For example, one host started a backup at 1:00 AM tuesday and another 20:36 monday. This is in contrast with the second blackout period I have defined. ... Am I doing something wrong?
Probably. The extract below is verbatim, from config.pl. Does it help? 8<---------------------------------------------------------------------- # PCs that are always or often on the network can be backed up after # hours, to reduce PC, network and server load during working hours. For # each PC a count of consecutive good pings is maintained. Once a PC has # at least $Conf{BlackoutGoodCnt} consecutive good pings it is subject # to "blackout" and not backed up during hours and days specified by # $Conf{BlackoutPeriods}. # # To allow for periodic rebooting of a PC or other brief periods when a # PC is not on the network, a number of consecutive bad pings is allowed # before the good ping count is reset. This parameter is # $Conf{BlackoutBadPingLimit}. # # Note that bad and good pings don't occur with the same interval. If a # machine is always on the network, it will only be pinged roughly once # every $Conf{IncrPeriod} (eg: once per day). So a setting for # $Conf{BlackoutGoodCnt} of 7 means it will take around 7 days for a # machine to be subject to blackout. On the other hand, if a ping is # failed, it will be retried roughly every time BackupPC wakes up, eg, # every one or two hours. So a setting for $Conf{BlackoutBadPingLimit} of # 3 means that the PC will lose its blackout status after 3-6 hours of # unavailability. # # To disable the blackout feature set $Conf{BlackoutGoodCnt} to a negative # value. A value of 0 will make all machines subject to blackout. But # if you don't want to do any backups during the day it would be easier # to just set $Conf{WakeupSchedule} to a restricted schedule. # $Conf{BlackoutBadPingLimit} = 3; $Conf{BlackoutGoodCnt} = 7; 8<---------------------------------------------------------------------- Something seems a bit odd in the part of your post below:
... 3, '3.6', 4, $Conf{WakeupSchedule} = [ 1, '1.6', 2, '2.6', ... ]; ...
Is it a cut'n'paste error? Anyway in your case it's probably easier to set $Conf{BlackoutGoodCnt} to 0 as described above and just rely on the wakeup schedule. -- 73, Ged. _______________________________________________ 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/