projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fa75ef
)
added option -i to create incremental dumps
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 Jan 2011 16:15:29 +0000
(16:15 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 Jan 2011 16:15:29 +0000
(16:15 +0000)
bin/BackupPC_tarCreate
patch
|
blob
|
history
diff --git
a/bin/BackupPC_tarCreate
b/bin/BackupPC_tarCreate
index
bb9f696
..
feec8b6
100755
(executable)
--- 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;
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 <<EOF;
usage: $0 [options] files/directories...
Required options:
print STDERR <<EOF;
usage: $0 [options] files/directories...
Required options:
@@
-96,6
+96,7
@@
usage: $0 [options] files/directories...
\$Conf{ClientCharset} when backup was done)
-l just print a file listing; don't generate an archive
-L just print a detailed file listing; don't generate an archive
\$Conf{ClientCharset} when backup was done)
-l just print a file listing; don't generate an archive
-L just print a detailed file listing; don't generate an archive
+ -i create incremental tar dump with just new files
EOF
exit(1);
}
EOF
exit(1);
}
@@
-141,7
+142,7
@@
if ( $opts{s} =~ m{(^|/)\.\.(/|$)} ) {
}
our $ShareName = $opts{s};
}
our $ShareName = $opts{s};
-our $view = BackupPC::View->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
#
# This constant and the line of code below that uses it are borrowed