From 75ad623d0fe56e57a3a49bbf0790d8ae129dfa01 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 26 Jan 2011 16:15:29 +0000 Subject: [PATCH 1/1] added option -i to create incremental dumps --- bin/BackupPC_tarCreate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/BackupPC_tarCreate b/bin/BackupPC_tarCreate index bb9f696..feec8b6 100755 --- a/bin/BackupPC_tarCreate +++ b/bin/BackupPC_tarCreate @@ -76,7 +76,7 @@ die("BackupPC::Lib->new failed\n") if ( !(my $bpc = BackupPC::Lib->new) ); my %opts; -if ( !getopts("Llte:h:n:p:r:s:b:w:", \%opts) || @ARGV < 1 ) { +if ( !getopts("Llte:h:n:p:r:s:b:w:i", \%opts) || @ARGV < 1 ) { print STDERR <new($bpc, $Host, \@Backups); +our $view = BackupPC::View->new($bpc, $Host, \@Backups, $opts{i} ? { only_first => 1 } : {}); # # This constant and the line of code below that uses it are borrowed -- 2.20.1