diff --git a/database/oracle/mode/rmanbackupage.pm b/database/oracle/mode/rmanbackupage.pm index c01fc3634..5a04879d9 100644 --- a/database/oracle/mode/rmanbackupage.pm +++ b/database/oracle/mode/rmanbackupage.pm @@ -112,9 +112,6 @@ sub run { my $label = $_; $label =~ s/ /-/g; foreach my $row (@$result) { - - next if (defined($already_checked->{$$row[0]})); - if (defined($self->{option_results}->{incremental_level})) { # db incr with incremental level 0 = DB FULL if (/db full/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0) { # it's a full. we get @@ -123,11 +120,14 @@ sub run { next if (/db incr/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0); # it's a full. we skip. next if ($$row[0] !~ /$_/i); } - - $already_checked->{$$row[0]} = 1; + } else { next if ($$row[0] !~ /$_/i); } + + next if (defined($already_checked->{$$row[0]})); + + $already_checked->{$$row[0]} = 1; $count_backups++; $executed = 1;