X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_tarCreate;h=b04464a41de1cb34c90bc544e3868879a94b0871;hp=feec8b6049eb716684e4721ebd6f0ecf88ec7fbc;hb=bc72241a845cd61a6386ec1394ca9d49c3fae3de;hpb=c8c070a680aa52f11e6e94886808ef8a44a440e4 diff --git a/bin/BackupPC_tarCreate b/bin/BackupPC_tarCreate index feec8b6..b04464a 100755 --- a/bin/BackupPC_tarCreate +++ b/bin/BackupPC_tarCreate @@ -141,8 +141,17 @@ if ( $opts{s} =~ m{(^|/)\.\.(/|$)} ) { exit(1); } +# XXX ASA Search extension +my $view_opts; + +my %Conf = $bpc->Conf; +if ( $Conf{TarCreateIncremental} || $opts{i} ) { + warn "# incremental dump"; + $view_opts = { only_first => 1 }; +} + our $ShareName = $opts{s}; -our $view = BackupPC::View->new($bpc, $Host, \@Backups, $opts{i} ? { only_first => 1 } : {}); +our $view = BackupPC::View->new($bpc, $Host, \@Backups, $view_opts); # # This constant and the line of code below that uses it are borrowed