X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_dump;h=2f3b7a336205b2ba3983add809cc2c333df7bd2e;hp=2b1d300077b768fdca7cbe6a0df1d0369035f23f;hb=8f5625f9cdf47f8e04be654c4954838b2df3e26d;hpb=ce708288691ba7dd95a8dac7a468bc0e4c1d6588 diff --git a/bin/BackupPC_dump b/bin/BackupPC_dump index 2b1d300..2f3b7a3 100755 --- a/bin/BackupPC_dump +++ b/bin/BackupPC_dump @@ -280,14 +280,15 @@ my $partialNum; if ( $Conf{FullPeriod} == -1 && !$opts{f} && !$opts{i} || $Conf{FullPeriod} == -2 ) { print(STDERR "Exiting because backups are disabled with" - . "\$Conf{FullPeriod} = $Conf{FullPeriod}\n") if ( $opts{v} ); + . " \$Conf{FullPeriod} = $Conf{FullPeriod}\n") if ( $opts{v} ); # # Tell BackupPC to ignore old failed backups on hosts that # have backups disabled. # print("backups disabled\n") - if ( $StatusHost{reason} ne "Reason_backup_done" - && time - $StatusHost{startTime} > 2 * 24 * 3600 ); + if ( defined($StatusHost{errorTime}) + && $StatusHost{reason} ne "Reason_backup_done" + && time - $StatusHost{errorTime} > 4 * 24 * 3600 ); NothingToDo($needLink); }