From: Evren Y. <yur...@is...> - 2009-05-18 21:31:32
|
Hi, I was wondering for a while why Rsync transport never adds the '--exclude' arguments even though there is code in lib/Xfer/Rsync.pm file which should do that. It first adds the --exclude arguments then... if ( defined($conf->{BackupFilesExclude}{$t->{shareName}}) ) { foreach my $file ( @{$conf->{BackupFilesExclude}{$t->{shareName}}} ) { # # just append additional exclude lists onto the end # $file = encode($conf->{ClientCharset}, $file) if ( $conf->{ClientCharset} ne "" ); push(@fileList, "--exclude=$file"); } } later on it strips them off eval { $argList = File::RsyncP->excludeStrip($argList); }; Is this a bug or what? Because of this, also the examples in the configuration file where --exclude are do not function at all. Is there a reason to strip the --exclude arguments at all? Thanks, Evren |