renamed to only_increment
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 27 Jan 2011 22:34:29 +0000 (23:34 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 27 Jan 2011 22:34:29 +0000 (23:34 +0100)
This better describes functionality and is self-documenting
you can also add it to view ULRs on the web

bin/BackupPC_ASA_SearchUpdate
bin/BackupPC_tarCreate
lib/BackupPC/CGI/Browse.pm
lib/BackupPC/View.pm

index 5615abb..034642f 100755 (executable)
@@ -534,7 +534,7 @@ foreach my $host_key (@hosts) {
                print $share_header unless $opt->quiet;
                status "$hostname $backupNum $share_header";
 
-               my $files = BackupPC::View->new($bpc, $hostname, \@backups, { only_first => 1 });
+               my $files = BackupPC::View->new($bpc, $hostname, \@backups, { only_increment => 1 });
 
                foreach my $share ($files->shareList($backupNum)) {
 
index b04464a..9af2931 100755 (executable)
@@ -147,7 +147,7 @@ my $view_opts;
 my %Conf = $bpc->Conf;
 if ( $Conf{TarCreateIncremental} || $opts{i} ) {
        warn "# incremental dump";
-       $view_opts = { only_first => 1 };
+       $view_opts = { only_increment => 1 };
 }
 
 our $ShareName = $opts{s};
index b0703ca..014ef9e 100644 (file)
@@ -80,7 +80,7 @@ sub action
     my $backupTime = timeStamp2($Backups[$i]{startTime});
     my $backupAge = sprintf("%.1f", (time - $Backups[$i]{startTime})
                                     / (24 * 3600));
-    my $view = BackupPC::View->new($bpc, $host, \@Backups, {nlink => 1});
+    my $view = BackupPC::View->new($bpc, $host, \@Backups, {nlink => 1, only_increment => $In{only_increment}});
 
     if ( $dir eq "" || $dir eq "." || $dir eq ".." ) {
        $attr = $view->dirAttrib($num, "", "");
index 6878b9b..c8664af 100644 (file)
@@ -245,7 +245,7 @@ sub dirCache
            }
        }
 
-       last if $m->{dirOpts}->{only_first}; # XXX ASA Search extension
+       last if $m->{dirOpts}->{only_increment}; # XXX ASA Search extension
     }
     #
     # Prune deleted files