Hi, I don't usually wade in to discussions like these, but as I understand perl fairly well, I feel the need to point out that you are on the wrong track G.W.Haywood.The error message does not refer to line 742 of config.pl, but to that of configure.pl, presumably the script which reads config.pl.Unless Jan has modified configure.pl, the actual error is still likely to be in config.pl.Jan please give more information - you said 'I started to notice following error.' - following what?Did you make a configuration change just before you noticed the error?Have you had BPC working, or are you still tuning the configuration?Are you using the web interface to do the configuration, or are you editing config.pl by hand?Which version of BPC are you using?Without further information, it's unlikely that other people are going to be able to help you. Kind regards,Peter Major On Sun, 2023-07-23 at 13:59 +0100, G.W. Haywood via BackupPC-users wrote: > Hi there, > On Sun, 23 Jul 2023, Jan Stransky wrote: > > I started to notice following error....Can't use string ("1") as a > > HASH ref while "strict refs" in use at configure.pl line 742.... > > Looks like you broke it. > Please let us see what you have around line 742 of configure.pl. > In the vanilla configure.pl that would be somewhere around the > partwhich sets up things to be backed up and/or ignored, but if > yourversion of config.pl has been heavily modified it could be > anything.This is from a current config.pl here: > 8<------------------------------------------------------------------- > ---$ cat -n /etc/BackupPC/config.pl | head -n 770 | tail -n > 45 726 # Examples: 727 # $Conf{BackupFilesExclude} = > '/temp'; 728 # $Conf{BackupFilesExclude} = ['/temp']; # > same as first example 729 # $Conf{BackupFilesExclude} = > ['/temp', '/winnt/tmp']; 730 # $Conf{BackupFilesExclude} = > { 731 # 'c' => ['/temp', '/winnt/tmp'], # these are > for 'c' share 732 # 'd' => ['/junk', '/dont_back_this_up'], > # these are for 'd' > share 733 # }; 734 # $Conf{BackupFilesExclude} = > { 735 # 'c' => ['/temp', '/winnt/tmp'], # these are > for 'c' share 736 # '*' => ['/junk', '/dont_back_this_up'], > # these are for other > shares 737 # }; 738 # 739 $Conf{BackupFilesExclude} = > undef; 740 741 # 742 # PCs that are always or often on the > network can be backed up after 743 # hours, to reduce PC, network > and server load during working hours. For 744 # each PC a count > of consecutive good pings is maintained. Once a PC has 745 # at > least $Conf{BlackoutGoodCnt} consecutive good pings it is > subject 746 # to "blackout" and not backed up during hours and > days specified by 747 # > $Conf{BlackoutPeriods}. 748 # 749 # To allow for periodic > rebooting of a PC or other brief periods when a 750 # PC is not > on the network, a number of consecutive bad pings is > allowed 751 # before the good ping count is reset. This parameter > is 752 # $Conf{BlackoutBadPingLimit}. 753 # 754 # Note > that bad and good pings don't occur with the same interval. If > a 755 # machine is always on the network, it will only be pinged > roughly once 756 # every $Conf{IncrPeriod} (eg: once per day). So > a setting for 757 # $Conf{BlackoutGoodCnt} of 7 means it will > take around 7 days for a 758 # machine to be subject to blackout. > On the other hand, if a ping is 759 # failed, it will be retried > roughly every time BackupPC wakes up, eg, 760 # every one or two > hours. So a setting for $Conf{BlackoutBadPingLimit} of 761 # 3 > means that the PC will lose its blackout status after 3-6 hours > of 762 # unavailability. 763 # 764 # To disable the > blackout feature set $Conf{BlackoutGoodCnt} to a negative 765 # > value. A value of 0 will make all machines subject to > blackout. But 766 # if you don't want to do any backups during > the day it would be easier 767 # to just set > $Conf{WakeupSchedule} to a restricted > schedule. 768 # 769 $Conf{BlackoutBadPingLimit} = > 3; 770 $Conf{BlackoutGoodCnt} = 7;8<---------------------- > ------------------------------------------------
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/