projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c070a
)
added TarCreateIncremental config variable forced in archive host
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 27 Jan 2011 21:48:21 +0000
(22:48 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 27 Jan 2011 21:48:21 +0000
(22:48 +0100)
bin/BackupPC_tarCreate
patch
|
blob
|
history
diff --git
a/bin/BackupPC_tarCreate
b/bin/BackupPC_tarCreate
index
feec8b6
..
b04464a
100755
(executable)
--- 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