When making tar format backups on Linux, an option to just append new files to the archive instead of over-writing it is available.
---- Changes since 1.400 ----
Fixed remote tar backups via FTP on OSX.
+Files and directories to exclude can be specified for TAR format backups on Linux.
dump_label=Backup label
dump_multi=Split across multiple files?
dump_update=Update <tt>/etc/dumpdates</tt> file?
+dump_exclude=Files and directories to skip
dump_edir=Missing or invalid directory to backup
dump_efile=Missing file or device to backup to
dump_ehost=Missing or invalid host to backup to
$text{'dump_auto'})." kB",
3, $tds);
+ print &ui_table_row(&hlink($text{'dump_exclude'}, "exclude"),
+ &ui_textbox("exclude", $_[0]->{'exclude'}, 50),
+ 3, $tds);
+
print &ui_table_row(&hlink($text{'dump_gzip'},"gzip"),
&ui_select("gzip", int($_[0]->{'gzip'}),
[ [ 0, $text{'no'} ],
$_[0]->{'blocks'} = $in{'blocks'};
$in{'gzip'} && &error($text{'dump_egzip'});
}
+ $_[0]->{'exclude'} = $in{'exclude'};
$_[0]->{'gzip'} = $in{'gzip'};
$_[0]->{'multi'} = $in{'multi'};
$_[0]->{'links'} = $in{'links'};
$cmd .= " -F \"$tapecmd $_[0]->{'id'}\"" if (!$_[0]->{'gzip'} && $tapecmd);
$cmd .= " --rsh-command=".quotemeta($_[0]->{'rsh'}) if ($_[0]->{'rsh'});
$cmd .= " --rmt-command=".quotemeta($_[0]->{'rmt'}) if ($_[0]->{'rmt'});
+ if ($_[0]->{'exclude'}) {
+ foreach my $e (&split_quoted_string($_[0]->{'exclude'})) {
+ $cmd .= " --exclude ".quotemeta($e);
+ }
+ }
$cmd .= " $_[0]->{'extra'}" if ($_[0]->{'extra'});
$cmd .= " ".join(" ", map { "'$_'" } @dirs);
}